Skip to content

Commit 289da99

Browse files
committed
[IMP] account: add delivery date on invoices for France
The new legislation in France imposes to add te deliver date on the invoice. task-5231287
1 parent 9825802 commit 289da99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addons/l10n_fr_account/models/account_move.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def _compute_l10n_fr_is_company_french(self):
2323

2424
@api.depends('country_code', 'move_type')
2525
def _compute_show_delivery_date(self):
26+
# EXTEND 'account'
2627
super()._compute_show_delivery_date()
2728
for move in self:
28-
if move.country_code == 'FR':
29+
if move.l10n_fr_is_company_french:
2930
move.show_delivery_date = move.is_sale_document()

0 commit comments

Comments
 (0)