-
-
Notifications
You must be signed in to change notification settings - Fork 241
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] stock_operating_unit: Migration to 17.0 #673
[MIG] stock_operating_unit: Migration to 17.0 #673
Conversation
/ocabot migration stock_operating_unit |
ac27757
to
d50283c
Compare
Open discussion for the constraint on locations : _check_required_operating_unit In previous versions of the module, the operating unit was mandatory on locations (except customer and supplier ones). In the case of one of my projects, the customer wants to have a "central" warehouse common to all operating units. With the constraint, I have to define an operating unit, even if it's not coherent with the business need. Right now, I remove this part of the code from the constraint, but maybe there is another solution. What's the opinion on this? |
I am not completely sure, but I think the condition is there mainly for correctly inventory accounting, so to ensure that the inventory value is owned by a specific operating unit. If that is the case maybe we can move the contraint to the stock_account_operating_unit module. Another solution is to consider using hierarchy in operating units: #319 like if the parent OU represents the company. This approach is more complex because all the contraints definitions should be refactored. |
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.
Please take this occasion to squash administrative commits (if any) with the previous commit for reducing commit noise.
Squash your 2 commits with [MIG] stock_operating_unit: Migration to 17.0
Thanks,
stock_operating_unit/view/stock.xml
Outdated
groups="operating_unit.group_multi_operating_unit" | ||
readonly="state == 'draft'" |
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.
readonly when "state != 'draft'"
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.
Fixed 👍
168c949
to
f28909c
Compare
* Replace <openerp> and <data> elements by <odoo> * Remove spaces in strings introduced because of \ * Remove exclamation points in error messages * Remove most of the \ where it can be replaced by parenthesis
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: operating-unit-16.0/operating-unit-16.0-stock_operating_unit Translate-URL: https://translation.odoo-community.org/projects/operating-unit-16-0/operating-unit-16-0-stock_operating_unit/
f28909c
to
d8322a7
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
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at a2d0fda. Thanks a lot for contributing to OCA. ❤️ |
Depends on: