Skip to content

Commit 2d4656e

Browse files
committed
[REV] DONT LOOK - l10n_fr: Show delivery date on customer invoices
no task id
1 parent c492060 commit 2d4656e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

addons/l10n_fr_account/models/account_move.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,3 @@ def _get_view(self, view_id=None, view_type='form', **options):
1919
def _compute_l10n_fr_is_company_french(self):
2020
for record in self:
2121
record.l10n_fr_is_company_french = record.country_code in record.company_id._get_france_country_codes()
22-
23-
@api.depends("country_code", "move_type")
24-
def _compute_show_delivery_date(self):
25-
# EXTEND 'account'
26-
super()._compute_show_delivery_date()
27-
for move in self.filtered(lambda m: m.country_code == 'FR'):
28-
move.show_delivery_date = move.is_sale_document()
29-
30-
def _post(self, soft=True):
31-
# EXTEND 'account'
32-
res = super()._post(soft=soft)
33-
for move in self.filtered(lambda m: m.show_delivery_date and not m.delivery_date):
34-
move.delivery_date = move.invoice_date
35-
return res

0 commit comments

Comments
 (0)