Skip to content
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

[MIG] sale_stock_operating_unit: Migration to 17.0 #676

Merged

Conversation

@AaronHForgeFlow
Copy link
Contributor

/ocabot migration sale_stock_operating_unit

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone May 29, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request May 29, 2024
16 tasks
@jdidderen-nsi jdidderen-nsi force-pushed the 17.0-mig-sale_stock_operating_unit branch from da4c0a7 to 32858c8 Compare June 11, 2024 09:17
Copy link

@nguyenminhchien nguyenminhchien left a comment

Choose a reason for hiding this comment

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

Look good overall, just left 2 comments for considering.

@@ -12,7 +12,7 @@ def _get_new_picking_values(self):
"""
Override to add Operating Units to Picking.
"""
values = super(StockMove, self)._get_new_picking_values()
values = super()._get_new_picking_values()

Choose a reason for hiding this comment

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

in my opinion, it's not necessary to override this function. we have a constraint to make sure the order and its warehouse having the same value of operating_unit_id. So, just let the field stock_picking.operating_unit_id computes the value itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The operating unit is not mandatory on the warehouse and then you could have a shared warehouse and having pickings from several operating units. In that case, the compute will not work.

("warehouse_id", "=", rec.id),
("operating_unit_id", "!=", rec.operating_unit_id.id),
]
)

Choose a reason for hiding this comment

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

should add limit=1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done 👍

@jdidderen-nsi jdidderen-nsi force-pushed the 17.0-mig-sale_stock_operating_unit branch from 32858c8 to fe9a73d Compare June 24, 2024 13:43
@jdidderen-nsi jdidderen-nsi force-pushed the 17.0-mig-sale_stock_operating_unit branch from fe9a73d to 307da6e Compare August 2, 2024 12:51
@yvaucher
Copy link
Member

yvaucher commented Aug 5, 2024

All dependencies have been merge, please refresh the PR by removing the test-requirement change.

Copy link
Member

@yvaucher yvaucher left a comment

Choose a reason for hiding this comment

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

LGTM

sudhir-serpentcs and others added 20 commits August 7, 2024 13:47
od the company

[FIX]access operating unit of the sales team
Currently translated at 100.0% (5 of 5 strings)

Translation: operating-unit-12.0/operating-unit-12.0-sale_stock_operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-12-0/operating-unit-12-0-sale_stock_operating_unit/pt/
Currently translated at 100.0% (5 of 5 strings)

Translation: operating-unit-12.0/operating-unit-12.0-sale_stock_operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-12-0/operating-unit-12-0-sale_stock_operating_unit/it/
OCA-git-bot and others added 7 commits August 7, 2024 13:47
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: operating-unit-15.0/operating-unit-15.0-sale_stock_operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-15-0/operating-unit-15-0-sale_stock_operating_unit/
Currently translated at 80.0% (4 of 5 strings)

Translation: operating-unit-15.0/operating-unit-15.0-sale_stock_operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-15-0/operating-unit-15-0-sale_stock_operating_unit/it/
Currently translated at 100.0% (5 of 5 strings)

Translation: operating-unit-15.0/operating-unit-15.0-sale_stock_operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-15-0/operating-unit-15-0-sale_stock_operating_unit/it/
@jdidderen-nsi jdidderen-nsi force-pushed the 17.0-mig-sale_stock_operating_unit branch from 307da6e to a968b41 Compare August 7, 2024 11:47
@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). 🤖

@AaronHForgeFlow
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-676-by-AaronHForgeFlow-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit cb58499 into OCA:17.0 Aug 7, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

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.