From 219dc235827a5beb018648b5e07ed07f24d344e2 Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Wed, 18 Aug 2021 15:27:24 +0200 Subject: [PATCH] [ADD] Add phone/mobile to invoice report --- __manifest__.py | 2 +- report/account_invoice_template.xml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/__manifest__.py b/__manifest__.py index c3905e2..2e05073 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,7 +1,7 @@ { "name": "VRACOOP - Processus Click&Collect", "summary": "VRACOOP - Processus Click&Collect", - "version": "12.0.1.0.1", + "version": "12.0.1.1.1", "development_status": "Beta", "author": "Le Filament", "maintainers": ["remi-filament"], diff --git a/report/account_invoice_template.xml b/report/account_invoice_template.xml index 4c9be9c..a0800c3 100644 --- a/report/account_invoice_template.xml +++ b/report/account_invoice_template.xml @@ -2,6 +2,12 @@ <odoo> <data> <template id="report_invoice_document" inherit_id="account.report_invoice_document"> + <xpath expr="//t[@t-set='address']" position="replace"> + <t t-set="address"> + <address t-field="o.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone", "mobile"], "no_marker": True}' /> + <div t-if="o.partner_id.vat" class="mt16"><t t-esc="o.company_id.country_id.vat_label or 'Tax ID'"/>: <span t-field="o.partner_id.vat"/></div> + </t> + </xpath> <p t-if="o.reference" position="before"> <p t-if="o.vracoop_point_retrait_id"> <strong>Point de retrait:</strong> <span t-field="o.vracoop_point_retrait_id"/><br/> -- GitLab