Skip to content

Commit

Permalink
[OU-FIX] hr_expense: fail when account_journal_lock_date
Browse files Browse the repository at this point in the history
  • Loading branch information
remytms committed Sep 30, 2024
1 parent 9af4744 commit 6c7cf5a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def _fill_payment_state(env):

@openupgrade.migrate()
def migrate(env, version):
if openupgrade.is_module_installed(
env.cr, "account_journal_lock_date",
):
env = env.with_context(bypass_journal_lock_date=True)
_fill_payment_state(env)
openupgrade.load_data(env.cr, "hr_expense", "15.0.2.0/noupdate_changes.xml")
openupgrade.delete_record_translations(
Expand Down

0 comments on commit 6c7cf5a

Please sign in to comment.