-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
be4f90e
commit c1414a7
Showing
4 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
openupgrade_scripts/scripts/purchase/15.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,14 @@ | ||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
all_purchase_order_lines = env["purchase.order.line"].search( | ||
[ | ||
("product_packaging_id", "!=", False), | ||
("state", "in", ["draft", "sent", "to approve"]), | ||
] | ||
) | ||
for line in all_purchase_order_lines: | ||
line._onchange_suggest_packaging() | ||
line._onchange_update_product_packaging_qty() |
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
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
6 changes: 3 additions & 3 deletions
6
openupgrade_scripts/scripts/purchase/15.0.1.2/upgrade_analysis_work.txt
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