We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2112b3 commit d6a1812Copy full SHA for d6a1812
addons/l10n_fr_account/models/account_move.py
@@ -28,3 +28,11 @@ def _compute_show_delivery_date(self):
28
for move in self:
29
if move.l10n_fr_is_company_french:
30
move.show_delivery_date = move.is_sale_document()
31
+
32
+ def _post(self, soft=True):
33
+ # EXTEND 'account'
34
+ to_post = super()._post(soft)
35
+ for move in self:
36
+ if move.show_delivery_date and not move.delivery_date:
37
+ move.delivery_date = move.invoice_date or fields.Date.context_today(self)
38
+ return to_post
0 commit comments