From b2f8b836665f5964d9d4223577bfd0231a1f3964 Mon Sep 17 00:00:00 2001 From: Majda EL MARIOULI Date: Tue, 23 Jul 2024 15:50:52 -0400 Subject: [PATCH] TA65012 [IMP] invoice_per_delivery: Add invoice_per_delivery to commercial fields (#200) --- invoice_per_delivery/i18n/fr.po | 2 +- invoice_per_delivery/models/res_partner.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/invoice_per_delivery/i18n/fr.po b/invoice_per_delivery/i18n/fr.po index 3ca1d1b..3711d0a 100644 --- a/invoice_per_delivery/i18n/fr.po +++ b/invoice_per_delivery/i18n/fr.po @@ -56,7 +56,7 @@ msgstr "Facture" #: model:ir.model.fields,field_description:invoice_per_delivery.field_res_partner__invoice_per_delivery #: model:ir.model.fields,field_description:invoice_per_delivery.field_res_users__invoice_per_delivery msgid "Invoicing per delivery" -msgstr "Factration par livraison" +msgstr "Facturation par livraison" #. module: invoice_per_delivery #: model:ir.model,name:invoice_per_delivery.model_account_move diff --git a/invoice_per_delivery/models/res_partner.py b/invoice_per_delivery/models/res_partner.py index 6937822..497d9ec 100644 --- a/invoice_per_delivery/models/res_partner.py +++ b/invoice_per_delivery/models/res_partner.py @@ -11,3 +11,6 @@ class ResPartner(models.Model): invoice_per_delivery = fields.Boolean( string="Invoicing per delivery", ) + + def _commercial_fields(self): + return super(ResPartner, self)._commercial_fields() + ["invoice_per_delivery"]