Browse Source

[ADD] Add phone/mobile to invoice report

12.0
Juliana 3 years ago
parent
commit
219dc23582
  1. 2
      __manifest__.py
  2. 6
      report/account_invoice_template.xml

2
__manifest__.py

@ -1,7 +1,7 @@
{ {
"name": "VRACOOP - Processus Click&Collect", "name": "VRACOOP - Processus Click&Collect",
"summary": "VRACOOP - Processus Click&Collect", "summary": "VRACOOP - Processus Click&Collect",
"version": "12.0.1.0.1",
"version": "12.0.1.1.1",
"development_status": "Beta", "development_status": "Beta",
"author": "Le Filament", "author": "Le Filament",
"maintainers": ["remi-filament"], "maintainers": ["remi-filament"],

6
report/account_invoice_template.xml

@ -2,6 +2,12 @@
<odoo> <odoo>
<data> <data>
<template id="report_invoice_document" inherit_id="account.report_invoice_document"> <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.reference" position="before">
<p t-if="o.vracoop_point_retrait_id"> <p t-if="o.vracoop_point_retrait_id">
<strong>Point de retrait:</strong> <span t-field="o.vracoop_point_retrait_id"/><br/> <strong>Point de retrait:</strong> <span t-field="o.vracoop_point_retrait_id"/><br/>

Loading…
Cancel
Save