Skip to content

Commit acef27d

Browse files
committed
[MIG] account_invoice_production_lot: Migration to 17.0
1 parent 9cbe61d commit acef27d

File tree

5 files changed

+14
-22
lines changed

5 files changed

+14
-22
lines changed

account_invoice_production_lot/__manifest__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
{
99
"name": "Invoice Production Lots",
10-
"version": "16.0.1.0.0",
10+
"version": "17.0.1.0.0",
1111
"author": "Agile Business Group," "Tecnativa," "Odoo Community Association (OCA)",
1212
"summary": "Display delivered serial numbers in invoice",
1313
"website": "https://github.com/OCA/account-invoice-reporting",
1414
"license": "AGPL-3",
1515
"category": "Accounting & Finance",
1616
"depends": ["account", "stock_picking_invoice_link", "sale_management"],
17-
"data": ["views/account_invoice_views.xml", "report/report_invoice.xml"],
17+
"data": ["views/account_move_views.xml", "report/report_invoice.xml"],
1818
"demo": ["demo/sale.xml"],
1919
"installable": True,
2020
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
22

3-
from . import account_invoice
3+
from . import account_move_line

account_invoice_production_lot/report/report_invoice.xml

+11-19
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,21 @@
1212
</t>
1313
</t>
1414
</xpath>
15-
<xpath expr="//t[@name='account_invoice_line_accountable']/.." position="after">
16-
<t
17-
t-if="not line.display_type and lots and line.product_id.tracking == 'lot'"
15+
<xpath expr="//td[@name='account_invoice_line_name']" position="inside">
16+
<div
17+
t-if="line.display_type == 'product' and lots and line.product_id.tracking == 'lot'"
1818
name="account_invoice_line_lot"
1919
groups="stock.group_production_lot"
2020
>
21-
<tr>
22-
<td colspan="99">
23-
<div class="row ml-1">
24-
<div class="col">
25-
<b class="font-italic">Serial numbers</b>
26-
</div>
21+
<b class="font-italic">Serial numbers</b>
22+
<t t-foreach="lots" t-as="lot">
23+
<div class="row ml-1 mt-1">
24+
<div class="col">
25+
<span t-esc="lot[0]" /> (<span t-esc="lot[1]" />)
2726
</div>
28-
<t t-foreach="lots" t-as="lot">
29-
<div class="row ml-1 mt-1">
30-
<div class="col">
31-
<span t-esc="lot[0]" /> (<span t-esc="lot[1]" />)
32-
</div>
33-
</div>
34-
</t>
35-
</td>
36-
</tr>
37-
</t>
27+
</div>
28+
</t>
29+
</div>
3830
</xpath>
3931
</template>
4032
</odoo>

0 commit comments

Comments
 (0)