Skip to content

Commit

Permalink
Merge commit 'refs/pull/170/head' of https://github.com/oca/brand int…
Browse files Browse the repository at this point in the history
…o 16.0-4181
  • Loading branch information
docker-odoo committed Nov 3, 2023
2 parents 4d779dd + 09ed564 commit 9232b45
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions product_brand/__manifest__.py
Expand Up @@ -24,6 +24,8 @@
"views/product_brand_view.xml",
"reports/sale_report_view.xml",
"reports/account_invoice_report_view.xml",
"reports/report_invoice.xml",
"reports/sale_report.xml",
],
"installable": True,
"auto_install": False,
Expand Down
13 changes: 13 additions & 0 deletions product_brand/reports/report_invoice.xml
@@ -0,0 +1,13 @@
<?xml version='1.0' encoding='utf-8' ?>
<odoo>
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="//th[@name='th_description']" position="after">
<th class="text-center">Brand</th>
</xpath>
<xpath expr="//td[@name='account_invoice_line_name']" position="after">
<td name="td_product_brand" class="text-center">
<span t-field="line.product_id.product_brand_id.display_name" />
</td>
</xpath>
</template>
</odoo>
13 changes: 13 additions & 0 deletions product_brand/reports/sale_report.xml
@@ -0,0 +1,13 @@
<?xml version='1.0' encoding='utf-8' ?>
<odoo>
<template id="report_saleorder" inherit_id="sale.report_saleorder_document">
<xpath expr="//th[@name='th_description']" position="after">
<th class="text-center">Brand</th>
</xpath>
<xpath expr="//td[@name='td_name']" position="after">
<td name="td_product_brand" class="text-center">
<span t-field="line.product_id.product_brand_id.display_name" />
</td>
</xpath>
</template>
</odoo>

0 comments on commit 9232b45

Please sign in to comment.