From 975df40cdc2ea4e810aff056d39b63cea3200f8f Mon Sep 17 00:00:00 2001 From: Wajih-Wanis Date: Tue, 4 Nov 2025 12:49:41 +0100 Subject: [PATCH] [IMP] l10n_fr_account: delivery date added on french invoices as a new legislation in french required the addition of delivery date on invoice s we have to modify the localisation for french companies to always have the deliver y date included in the invoices to comply with the legislation. task : 5231338 --- addons/l10n_fr_account/models/account_move.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/l10n_fr_account/models/account_move.py b/addons/l10n_fr_account/models/account_move.py index ff6f3aca58f49..686ef03571aa4 100644 --- a/addons/l10n_fr_account/models/account_move.py +++ b/addons/l10n_fr_account/models/account_move.py @@ -20,3 +20,10 @@ def _get_view(self, view_id=None, view_type='form', **options): def _compute_l10n_fr_is_company_french(self): for record in self: record.l10n_fr_is_company_french = record.country_code in record.company_id._get_france_country_codes() + + @api.depends('country_code', 'move_type') + def _compute_show_delivery_date(self): + super()._compute_show_delivery_date() + for move in self: + if move.l10n_fr_is_company_french: + move.show_delivery_date = move.is_sale_document()