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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user