-
-
Notifications
You must be signed in to change notification settings - Fork 535
[16.0][MIG] mrp_bom_version: Migration to 16.0 #1368
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
Conversation
[DEL mrp_bom_version, NEW mrp_bom_state]
[IMP] mrp_bom_version: fix flake8 [IMP]mrp_bom_version: fix travis
Updated to follow OCA conventions Explained in https://github.com/OCA/maintainer-tools/tree/master/template/module Update README.rst Update README.rst
…ion, and historical. Create _copy_bom, _update_bom_state_after_copy functions. [ADD] mrp_bom_new_version_when_component_change: Create a new version of BoM when are you going to change a component.
[IMP] mrp_bom_component_change: Include folder "tests", and programming improvements.
* When passing back to draft mantain active according to company definition * SQL sentence for state update in post-init-hook. * _bom_find with context state so that only those in state=active are taken into account * Tests * api.one deprecated [IMP] <mrp_bom_version> Little required changes [IMP] <mrp_bom_version> from api.one to api.multi [IMP] <mrp_bom_version> New tests added
* mrp_bom_reference_selection : Changed view id to enable use in other modules * mrp_bom_version : View copied to match the one in other modules
Currently translated at 100.0% (23 of 23 strings) Translation: manufacture-8.0/manufacture-8.0-mrp_bom_version Translate-URL: https://translation.odoo-community.org/projects/manufacture-8-0/manufacture-8-0-mrp_bom_version/gl/
Currently translated at 100.0% (23 of 23 strings) Translation: manufacture-8.0/manufacture-8.0-mrp_bom_version Translate-URL: https://translation.odoo-community.org/projects/manufacture-8-0/manufacture-8-0-mrp_bom_version/it/
ca5f3f1
to
0f09bc9
Compare
0f09bc9
to
a90ab95
Compare
mrp_bom_version/models/mrp_bom.py
Outdated
version = fields.Integer( | ||
states={"historical": [("readonly", True)]}, copy=False, default=1 | ||
) | ||
parent_bom = fields.Many2one( |
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.
Suggestion: rename field parent_bom
to previous_bom
. The name parent_bom
seems confusing, given the hierarchical nature of a bill of materials.
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.
Thanks for the suggestion, change done
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.
@matt454357 @kaycross : is it ok for you to aprove? I would like to merge it but I would need more aprovals.
Thank you!!!
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.
Looks good
/ocabot migration mrp_bom_version |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 1368b61. Thanks a lot for contributing to OCA. ❤️ |
No description provided.