Skip to content
Snippets Groups Projects
Commit 2f83737b authored by Carlos Dauden's avatar Carlos Dauden
Browse files

[FIX] account_check_printing: Duplicate journal generate duplicate check sequence.


Unnecessary call to _create_check_sequence because is called in create method and create is called in supper().copy()
TT35608

closes odoo/odoo#88033

Signed-off-by: default avatarFlorian Gilbert <flg@odoo.com>
parent f8e2f2a4
Branches
Tags
No related merge requests found
......@@ -47,12 +47,6 @@ class AccountJournal(models.Model):
rec._create_check_sequence()
return rec
@api.returns('self', lambda value: value.id)
def copy(self, default=None):
rec = super(AccountJournal, self).copy(default)
rec._create_check_sequence()
return rec
def _create_check_sequence(self):
""" Create a check sequence for the journal """
for journal in self:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment