Return period end date as default date for account move

When period is before today, the default date of the account move must be set
with the period end date.

Closes #12408
This commit is contained in:
Nicolas Évrard
2023-08-02 22:05:22 +02:00
parent c7cb91e369
commit 768e44bc8a
+1 -1
View File
@@ -157,7 +157,7 @@ class Move(ModelSQL, ModelView):
elif start_date >= today:
return start_date
else:
end_date
return end_date
@fields.depends('date', 'period', 'company', 'lines')
def on_change_date(self):