diff options
| author | Cédric Snauwaert <csn@openerp.com> | 2018-07-24 17:01:28 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2018-07-24 17:12:52 +0200 |
| commit | c71da7db84f20ba8fb8c4da83d6a3ee063bb1c01 (patch) | |
| tree | 2848f3731d548f80613f6f5cb1cddad1e4a531e6 /addons/purchase_stock/report | |
| parent | 0ab6845ed87d50af838f7390b7141911323ee150 (diff) | |
[REF] report, *: defines address area in external layout templates
This is needed because some reports we want to add later on, need to have
the address field on the left or following a given format.
Hence we moved the address div from each existing report on to the main report
template itself, Since some reports uses up until 3 addresses, we have defined
an area for the main address that each report can set (address used on the
envelope's window for sending). The any other extra address, or additional
information should be defined in the 'information_block' div
Was part of task: 35289
Was part of PR #25472
Diffstat (limited to 'addons/purchase_stock/report')
| -rw-r--r-- | addons/purchase_stock/report/purchase_report_templates.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/purchase_stock/report/purchase_report_templates.xml b/addons/purchase_stock/report/purchase_report_templates.xml index a98ed53f891..8e5adc9d45d 100644 --- a/addons/purchase_stock/report/purchase_report_templates.xml +++ b/addons/purchase_stock/report/purchase_report_templates.xml @@ -2,7 +2,7 @@ <odoo> <template id="report_purchaseorder_document" inherit_id="purchase.report_purchaseorder_document"> - <xpath expr="//div[@name='purchase_shipping_address']" position="inside"> + <xpath expr="//div[@name='purchase_shipping_address']" position="after"> <div t-if="not o.dest_address_id and o.picking_type_id and o.picking_type_id.warehouse_id"> <span t-field="o.picking_type_id.warehouse_id.name"/> <div t-field="o.picking_type_id.warehouse_id.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/> @@ -11,7 +11,7 @@ </template> <template id="report_purchasequotation_document" inherit_id="purchase.report_purchasequotation_document"> - <xpath expr="//div[@name='purchase_shipping_address']" position="inside"> + <xpath expr="//div[@name='purchase_shipping_address']" position="after"> <div t-if="not o.dest_address_id and o.picking_type_id.warehouse_id"> <span t-field="o.picking_type_id.warehouse_id.name"/> <div t-field="o.picking_type_id.warehouse_id.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/> |
