Skip to content

[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

Merged
merged 38 commits into from
Mar 29, 2023

Conversation

slitheryduke11
Copy link
Contributor

No description provided.

pedrobaeza and others added 30 commits March 5, 2023 20:30
==============================
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/
@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Mar 6, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 6, 2023
75 tasks
Copy link

@desdelinux desdelinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@desdelinux
Copy link

Functional test. Work as expected

@dreispt @pedrobaeza This is ready.

"location_dest_id": picking_type.default_location_dest_id.id,
"move_ids": [
(
0,

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")

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

Suggested change
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"

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):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def setUp(self):
@classmethod
def setUpClass(cls):

@slitheryduke11 slitheryduke11 force-pushed the 16.0-mig-stock_picking_show_return branch 3 times, most recently from cde2822 to 2e32927 Compare March 19, 2023 21:16
@slitheryduke11 slitheryduke11 force-pushed the 16.0-mig-stock_picking_show_return branch from 2e32927 to 8812231 Compare March 28, 2023 01:42
@slitheryduke11
Copy link
Contributor Author

Hello @luisg123v.

All changes have been applied.

@slitheryduke11 slitheryduke11 force-pushed the 16.0-mig-stock_picking_show_return branch from 8812231 to b61678f Compare March 28, 2023 18:37
Copy link

@luisg123v luisg123v left a 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?

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Contributor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review

@rousseldenis
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-1237-by-rousseldenis-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 2ebc5d8 into OCA:16.0 Mar 29, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 3287b8e. Thanks a lot for contributing to OCA. ❤️

@luisg123v luisg123v deleted the 16.0-mig-stock_picking_show_return branch March 29, 2023 15:09
@luisg123v
Copy link

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

@rousseldenis
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.