2
0

Merge PR #1755 into 16.0

Signed-off-by moylop260
This commit is contained in:
OCA-git-bot 2023-11-21 19:23:31 +00:00
commit ec95247213

View File

@ -77,3 +77,9 @@ class AccountMove(models.Model):
def _get_last_sequence(self, relaxed=False, with_prefix=None, lock=True):
return super()._get_last_sequence(relaxed, None, lock)
@api.onchange("journal_id")
def _onchange_journal_id(self):
if not self.quick_edit_mode:
self.name = "/"
self._compute_name_by_sequence()