Skip to content

Commit

Permalink
[MIG] account_invoice_production_lot: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ioans73 committed May 9, 2024
1 parent 9cbe61d commit acef27d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
4 changes: 2 additions & 2 deletions account_invoice_production_lot/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

{
"name": "Invoice Production Lots",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"author": "Agile Business Group," "Tecnativa," "Odoo Community Association (OCA)",
"summary": "Display delivered serial numbers in invoice",
"website": "https://github.com/OCA/account-invoice-reporting",
"license": "AGPL-3",
"category": "Accounting & Finance",
"depends": ["account", "stock_picking_invoice_link", "sale_management"],
"data": ["views/account_invoice_views.xml", "report/report_invoice.xml"],
"data": ["views/account_move_views.xml", "report/report_invoice.xml"],
"demo": ["demo/sale.xml"],
"installable": True,
}
2 changes: 1 addition & 1 deletion account_invoice_production_lot/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import account_invoice
from . import account_move_line
30 changes: 11 additions & 19 deletions account_invoice_production_lot/report/report_invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,21 @@
</t>
</t>
</xpath>
<xpath expr="//t[@name='account_invoice_line_accountable']/.." position="after">
<t
t-if="not line.display_type and lots and line.product_id.tracking == 'lot'"
<xpath expr="//td[@name='account_invoice_line_name']" position="inside">
<div
t-if="line.display_type == 'product' and lots and line.product_id.tracking == 'lot'"
name="account_invoice_line_lot"
groups="stock.group_production_lot"
>
<tr>
<td colspan="99">
<div class="row ml-1">
<div class="col">
<b class="font-italic">Serial numbers</b>
</div>
<b class="font-italic">Serial numbers</b>
<t t-foreach="lots" t-as="lot">
<div class="row ml-1 mt-1">
<div class="col">
<span t-esc="lot[0]" /> (<span t-esc="lot[1]" />)
</div>
<t t-foreach="lots" t-as="lot">
<div class="row ml-1 mt-1">
<div class="col">
<span t-esc="lot[0]" /> (<span t-esc="lot[1]" />)
</div>
</div>
</t>
</td>
</tr>
</t>
</div>
</t>
</div>
</xpath>
</template>
</odoo>

0 comments on commit acef27d

Please sign in to comment.