-
-
Notifications
You must be signed in to change notification settings - Fork 714
[16.0][MIG] stock_picking_show_return: Migration to 16.0 #1237
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] stock_picking_show_return: Migration to 16.0 #1237
Conversation
============================== Show returns on stock pickings ============================== This module enables one tab in the pickings that contains returns made for that picking.
The returned picking must be obtained from the picking of the iteration, not the set of pickings to be calculated.
OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex
For avoiding errors when other modules add required fields on affected models
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-workflow-12.0/stock-logistics-workflow-12.0-stock_picking_show_return Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-12-0/stock-logistics-workflow-12-0-stock_picking_show_return/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_picking_show_return Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_picking_show_return/
Currently translated at 100.0% (5 of 5 strings) Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_picking_show_return Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_picking_show_return/zh_CN/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-workflow-13.0/stock-logistics-workflow-13.0-stock_picking_show_return Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-workflow-13-0/stock-logistics-workflow-13-0-stock_picking_show_return/
…t due to this Odoo commit OCA/OCB@8ca10a8
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.
LGTM
Functional test. Work as expected @dreispt @pedrobaeza This is ready. |
"location_dest_id": picking_type.default_location_dest_id.id, | ||
"move_ids": [ | ||
( | ||
0, |
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.
Use Command syntax, please
"""Get source piking from this picking. Only one origin is possible.""" | ||
for picking in self: | ||
picking.source_picking_id = first( | ||
picking.mapped("move_ids.origin_returned_move_id.picking_id") |
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.
Mapped not required anymore when the field is a recordset, see odoo/odoo#32897
picking.mapped("move_ids.origin_returned_move_id.picking_id") | |
picking.move_ids.origin_returned_move_id.picking_id |
Please apply this in all similar cases
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" |
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.
16.0.
Please re-generate this file (only the template)
|
||
@tagged("post_install", "-at_install") | ||
class TestStockPickingShowReturn(TransactionCase): | ||
def setUp(self): |
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.
def setUp(self): | |
@classmethod | |
def setUpClass(cls): |
cde2822
to
2e32927
Compare
2e32927
to
8812231
Compare
Hello @luisg123v. All changes have been applied. |
8812231
to
b61678f
Compare
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.
LGTM 👍
@moylop260 could you review/merge, please?
This PR has the |
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.
Code review
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 3287b8e. Thanks a lot for contributing to OCA. ❤️ |
Thanks @rousseldenis. FYI when migrations are merged, that's usually done using nobump instead of patch, to make the version to stay in 16.0.1.0.0 |
Yes from >= 15, pre-releases are not done anymore on pypi. I forgot that information. That's why I'd always prefer use patch before. So, usage of nobump is encouraged now |
No description provided.