Skip to content

Commit

Permalink
[MIG] account_lock_to_date: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPForgeFlow committed Jan 29, 2025
1 parent 5c6c494 commit a263bcc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion account_lock_to_date/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "Account Lock To Date",
"summary": """
Allows to set an account lock date in the future.""",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools",
Expand Down
2 changes: 1 addition & 1 deletion account_lock_to_date/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def write(self, vals):
# fiscalyear_lock_date can't be set to a prior date
if "fiscalyear_lock_to_date" in vals or "period_lock_to_date" in vals:
self._check_lock_to_dates(vals)
return super(ResCompany, self).write(vals)
return super().write(vals)

def _check_lock_to_dates(self, vals):
"""Check the lock to dates for the current companies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class TestAccountLockToDateUpdate(TransactionCase):
def setUp(self):
super(TestAccountLockToDateUpdate, self).setUp()
super().setUp()
self.company = self.env.ref("base.main_company")
self.demo_user = self.env.ref("base.user_demo")
self.adviser_group = self.env.ref("account.group_account_manager")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AccountUpdateLockToDate(models.TransientModel):

@api.model
def default_get(self, field_list):
res = super(AccountUpdateLockToDate, self).default_get(field_list)
res = super().default_get(field_list)
company = self.env.user.company_id
res.update(
{
Expand Down

0 comments on commit a263bcc

Please sign in to comment.