forked from tvtma/OpenUpgrade
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3349edd
commit 7f33c61
Showing
4 changed files
with
560 additions
and
13 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
openupgrade_scripts/scripts/account/17.0.1.2/end-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2024 Viindoo Technology Joint Stock Company (Viindoo) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from openupgradelib import openupgrade | ||
|
||
|
||
def _res_partner_bank_computation(env): | ||
partner_banks = env["res.partner.bank"].with_context(active_test=False).search([]) | ||
partner_banks._compute_display_account_warning() | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
_res_partner_bank_computation(env) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.