Skip to content

Commit

Permalink
Merge pull request #29 from augustodinizl/14.0
Browse files Browse the repository at this point in the history
[14.0][IMP] egd_purchase_custom: add payment_term_id field to report_purchasequotation_document and report_purchaseorder_document
  • Loading branch information
marcelsavegnago authored Dec 11, 2023
2 parents aa20976 + f4ac4b4 commit a0f807c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions egd_purchase_custom/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
"data": [
"views/purchase_order_line.xml",
"views/purchase_order.xml",
"views/purchase_quotation_templates.xml",
"views/purchase_order_templates.xml",
],
}
15 changes: 15 additions & 0 deletions egd_purchase_custom/views/purchase_order_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<odoo>
<template
id="report_purchaseorder_document_egd"
inherit_id="purchase.report_purchaseorder_document"
name="report_purchaseorder_document_payment_term_egd"
>
<xpath expr="//div[@id='informations']" position="inside">
<div t-if="o.payment_term_id" class="col-3 bm-2">
<strong>Payment Terms:</strong>
<p t-field="o.payment_term_id.name" class="m-0" />
</div>
</xpath>
</template>
</odoo>
15 changes: 15 additions & 0 deletions egd_purchase_custom/views/purchase_quotation_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<odoo>
<template
id="report_purchasequotation_document_egd"
inherit_id="purchase.report_purchasequotation_document"
name="report_purchasequotation_document_payment_term_egd"
>
<xpath expr="//div[@id='informations']" position="inside">
<div t-if="o.payment_term_id" class="col-3 bm-2">
<strong>Payment Terms:</strong>
<p t-field="o.payment_term_id.name" class="m-0" />
</div>
</xpath>
</template>
</odoo>

0 comments on commit a0f807c

Please sign in to comment.