diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 187269c9e26..b3bfe769652 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1562,7 +1562,7 @@ class AccountMove(models.Model): if ( new_format != origin_format - or dict(new_format_values, seq=0) != dict(origin_format_values, seq=0) + or dict(new_format_values, year=0, month=0, seq=0) != dict(origin_format_values, year=0, month=0, seq=0) ): changed = _( "It was previously '%(previous)s' and it is now '%(current)s'.", @@ -2365,9 +2365,6 @@ class AccountMove(models.Model): # SEQUENCE MIXIN # ------------------------------------------------------------------------- - def _must_check_constrains_date_sequence(self): - return not self.posted_before and not self.quick_edit_mode - def _get_last_sequence_domain(self, relaxed=False): # EXTENDS account sequence.mixin self.ensure_one()