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

[UPD]Update invoice PDF

parent 2bd62128
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -272,6 +272,7 @@ class AccAccount(models.Model): ...@@ -272,6 +272,7 @@ class AccAccount(models.Model):
self.is_tva = self.producer_id.is_tva self.is_tva = self.producer_id.is_tva
self.tax_id = self.producer_id.tax_id self.tax_id = self.producer_id.tax_id
self.is_collectivite = self.producer_id.is_collectivite self.is_collectivite = self.producer_id.is_collectivite
self.free_text = self.producer_id.free_text
self.acc_account_payment_ids = self.env["acc.account.payment"].search( self.acc_account_payment_ids = self.env["acc.account.payment"].search(
[("producer_id", "=", self.producer_id.id)]) [("producer_id", "=", self.producer_id.id)])
else: else:
...@@ -279,6 +280,7 @@ class AccAccount(models.Model): ...@@ -279,6 +280,7 @@ class AccAccount(models.Model):
self.tax_id = False self.tax_id = False
self.is_collectivite = False self.is_collectivite = False
self.acc_account_payment_ids = False self.acc_account_payment_ids = False
self.free_text = False
@api.onchange("is_tva") @api.onchange("is_tva")
def _onchange_is_tva(self): def _onchange_is_tva(self):
......
...@@ -350,6 +350,7 @@ class AccOperation(models.Model): ...@@ -350,6 +350,7 @@ class AccOperation(models.Model):
"is_collectivite": producer_id.is_collectivite, "is_collectivite": producer_id.is_collectivite,
"is_tva": producer_id.is_tva, "is_tva": producer_id.is_tva,
"tax_id": producer_id.tax_id.id, "tax_id": producer_id.tax_id.id,
"free_text": producer_id.free_text,
} }
) )
......
...@@ -34,6 +34,7 @@ class ResPartner(models.Model): ...@@ -34,6 +34,7 @@ class ResPartner(models.Model):
"acc.account.payment", "acc.account.payment",
"producer_id", "producer_id",
string="Méthodes de paiement") string="Méthodes de paiement")
free_text = fields.Text("Texte libre à afficher sur les factures")
# ------------------------------------------------------ # ------------------------------------------------------
# SQL Constraints # SQL Constraints
# ------------------------------------------------------ # ------------------------------------------------------
......
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
<div class="row mt-4 mb-5"> <div class="row mt-4 mb-5">
<div class="col-4 grey-div "> <div class="col-4 grey-div ">
<h5 class="font-weight-bold mb-3 mt-5 text-center">Vos références utiles</h5> <h5 class="font-weight-bold mb-3 mt-2 text-center">Vos références utiles</h5>
<p> <p>
<span <span
class="font-weight-bold" class="font-weight-bold"
...@@ -243,6 +243,9 @@ ...@@ -243,6 +243,9 @@
<t t-if="o.consumer_id.email"> <t t-if="o.consumer_id.email">
<span t-field="o.consumer_id.email" /><br /> <span t-field="o.consumer_id.email" /><br />
</t> </t>
<t t-if="o.consumer_id.phone">
<span t-field="o.consumer_id.phone" /><br />
</t>
<t t-if="o.consumer_id.vat"><span <t t-if="o.consumer_id.vat"><span
class="font-weight-bold" class="font-weight-bold"
>N°TVA:</span><br /> >N°TVA:</span><br />
...@@ -405,7 +408,6 @@ ...@@ -405,7 +408,6 @@
</tr> </tr>
<tr style=""> <tr style="">
<t>
<td><span <td><span
class="text-nowrap" class="text-nowrap"
/>TVA applicable <span />TVA applicable <span
...@@ -417,7 +419,10 @@ ...@@ -417,7 +419,10 @@
t-field="o.amount_tax" t-field="o.amount_tax"
/> />
</td> </td>
</t> </tr>
<tr>
<td />
<td />
</tr> </tr>
</t> </t>
<tr> <tr>
......
...@@ -43,6 +43,9 @@ ...@@ -43,6 +43,9 @@
<field name="bic" /> <field name="bic" />
</group> </group>
</group> </group>
<group>
<field name="free_text"/>
</group>
<field name="acc_account_payment_ids" /> <field name="acc_account_payment_ids" />
</page> </page>
</xpath> </xpath>
......
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