Skip to content
Extraits de code Groupes Projets
Valider 480e687a rédigé par Juliana's avatar Juliana
Parcourir les fichiers

[UPD]Update template account

parent d85b521f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -61,7 +61,7 @@ class AccAccount(models.Model):
producer_id = fields.Many2one(
comodel_name="res.partner",
related="acc_injection_id.partner_id",
string="Consommateur")
string="Producteur")
is_tva = fields.Boolean("Assujetti à la TVA", related='producer_id.is_tva')
tax_id = fields.Many2one(
"acc.account.tax",
......@@ -75,7 +75,7 @@ class AccAccount(models.Model):
consumer_id = fields.Many2one(
comodel_name="res.partner",
related="acc_delivery_id.partner_id",
string="Producteur")
string="Consommateur")
line_ids = fields.One2many(
"acc.account.line",
"acc_account_id",
......
......@@ -14,7 +14,7 @@
style="max-height: 80px;"
alt="Logo"
/>
<p class="m-0" t-field="o.producer_id.name"/>
<p class="mt-2" t-field="o.producer_id.name"/>
</div>
<div class="col-9 text-right" >
......@@ -31,7 +31,7 @@
<div>
<p>
<span class="text-center font-weight-bold">Vos références utiles</span><br/>
<span class="font-weight-bold">Tituaire du contrat:</span><br/>
<span class="font-weight-bold">Titulaire du contrat:</span><br/>
<t t-set="address">
<address t-field="o.consumer_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' /><br/>
</t>
......@@ -72,10 +72,11 @@
<div class="col-8">
<div class="text-right">
<p>
<span class="text-center font-weight-bold">Coordonnées de facturation</span>
<t t-set="address">
<address t-field="o.producer_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
</t>
<span class="text-center font-weight-bold">Coordonnées de facturation</span><br/>
<span class="font-weight-bold" t-field="o.consumer_id.name"/><br/>
<span t-field="o.consumer_id.street"/><br/>
<t t-if="o.consumer_id.street2"><span t-field="o.consumer_id.street2"/><br/></t>
<span t-field="o.consumer_id.zip"/> - <span t-field="o.consumer_id.city"/><br/>
</p>
</div>
<div>
......
......@@ -174,11 +174,11 @@
<field name="pmo_id" options='{"always_reload": True, "no_quick_create": True}'/>
<field name="acc_injection_id"
options='{"always_reload": True, "no_quick_create": True}'/>
<field name="consumer_id"
<field name="producer_id"
options='{"always_reload": True, "no_quick_create": True}'/>
<field name="acc_delivery_id"
options='{"always_reload": True, "no_quick_create": True}'/>
<field name="producer_id"
<field name="consumer_id"
options='{"always_reload": True, "no_quick_create": True}'/>
</group>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter