-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][MIG] delivery_schenker #632
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9b581bf
[ADD] delivery_schenker: New module
chienandalu fa4fd28
[UPD] Update delivery_schenker.pot
oca-travis 57b6fc0
[UPD] README.rst
OCA-git-bot cc46f5c
[FIX] delivery_schenker: undeclared method
chienandalu e83ac02
[UPD] Update delivery_schenker.pot
oca-travis a736766
delivery_schenker 13.0.1.0.1
OCA-git-bot f6e0f59
[IMP] delivery_schenker: black, isort, prettier
hildickethan 5d26505
[MIG] delivery_schenker: Migration to 14.0
hildickethan dbec813
[IMP] delivery_schenker: Minimum for volume
hildickethan 7189f77
[IMP] delivery_schenker: Add tracking
hildickethan 36d4215
[IMP] delivery_schenker: Print extra label button
hildickethan 995d8f0
[I18N] delivery_schenker: Spanish translation
hildickethan ebf669e
[UPD] Update delivery_schenker.pot
oca-travis 64e62fa
[UPD] README.rst
OCA-git-bot 9ee0d8e
[14.0][IMP] delivery_schenker: Return expected dict instead of error
hildickethan 39fc1fa
[UPD] Update delivery_schenker.pot
b69990b
delivery_schenker 14.0.1.0.1
OCA-git-bot acdc1e5
Update translation files
weblate aa7e5f8
[UPD] Update delivery_schenker.pot
58af1a8
Update translation files
weblate 21f9b1e
[FIX] delivery_schenker: fix missing dependency, before there was no …
mt-software-de 5264884
[IMP] delivery_schenker: black, isort, prettier
ferran-S73 0e0fa7e
[16.0][MIG] delivery_schenker
ferran-S73 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2023 Studio73 - Ferran Mora | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
for i in range(1, 23): | ||
xml_id = "delivery_schenker.schenker_packaging_{}".format(str(i).zfill(2)) | ||
pack = env.ref(xml_id, raise_if_not_found=False) | ||
if pack: | ||
xml_id = "delivery_schenker.schenker_package_type_{}".format( | ||
str(i).zfill(2) | ||
) | ||
package_type = env.ref(xml_id, raise_if_not_found=False) | ||
if package_type: | ||
env.cr.execute( | ||
"SELECT schenker_stackable FROM product_packaging WHERE id=%s", | ||
(pack.id,), | ||
) | ||
schenker_stackable = env.cr.fetchone() | ||
package_type.write({"schenker_stackable": schenker_stackable}) |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from . import delivery_carrier | ||
from . import product_packaging | ||
from . import schenker_request | ||
from . import stock_package_type | ||
from . import stock_picking |
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
5 changes: 3 additions & 2 deletions
5
...very_schenker/models/product_packaging.py → ...ery_schenker/models/stock_package_type.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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this migration script working as expected? I would have thought this XML-ID doesn't exist anymore in post migration, unless such references are dropped right after the full module upgrade?