Skip to content
Snippets Groups Projects
Commit dc39ebcc authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[add] siret on onvoice pdf

parent 35a1eb26
Branches
No related tags found
No related merge requests found
......@@ -12,6 +12,10 @@ class AccountMove(models.Model):
comodel_name='account.account',
string='Compte de tiers',
)
display_siret = fields.Boolean(
string="Afficher le SIRET", default=False,
help="Affiche le n° SIRET sur la facture client"
)
# ------------------------------------------------------
# Override Parent
......
......@@ -6,6 +6,13 @@
<data>
<template id="afac_report_invoice_document" inherit_id="account.report_invoice_document">
<!-- Affichage du SIRET -->
<xpath expr="//div[@name='reference']" position="after">
<div class="col-auto col-3 mw-100 mb-2" t-if="o.display_siret" name="reference">
<strong>SIRET :</strong>
<p class="m-0" t-field="o.partner_id.siret"/>
</div>
</xpath>
<!-- Gestion de l'affichage de la TVA : tableau & total -->
<xpath expr="//th[@name='th_taxes']" position="attributes">
<attribute name="t-if">o.company_id.is_tax</attribute>
......
......@@ -16,6 +16,9 @@
<attribute name="domain">[('is_company', '=', True)]</attribute>
<attribute name="options">{'no_create': True}</attribute>
</xpath>
<xpath expr="//field[@name='payment_reference']" position="after">
<field name="display_siret" widget="boolean_toggle"/>
</xpath>
<xpath expr="//div[@name='journal_div']" position="after">
<field name="third_account_journal_ids" invisible="1"/>
<field
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment