-
-
Notifications
You must be signed in to change notification settings - Fork 711
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
[18.0][MIG] product_medical: Migration to 18.0 #1753
[18.0][MIG] product_medical: Migration to 18.0 #1753
Conversation
/ocabot migration product_medical |
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.
Even if some fields in product template should maybe include 'medical' in their names to avoid possible conflicts
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.
Getting back on my first review: there are two pre-commit commits, and the 2nd one is bumping the version number wrongly, then it's reverted in the migration commit afterwards. This has to be fixed.
Regarding a "medical" prefix for fields that could conflicts with other non-medical topics, this is a good improvement indeed. Can you handle this with the proper migration script? 🙏
dc30cd3
to
c05b7bc
Compare
Currently translated at 68.3% (28 of 41 strings) Translation: product-attribute-13.0/product-attribute-13.0-product_medical Translate-URL: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-product_medical/de/
1. The layout for the old tab MDR (now called Conformity) has been changed to split the fields into two categories: conformity-related and documents-related. 2. The two fields storing the "Declaration of Conformity" and the "CE Certificate Medical class", that before stored an attachment, now allow to store several attachments. To make this change, a migration script has been provided, because the field names have changed to adhere to the naming conventions. 3. The string for the field ce_certificate_medical_class_ids has changed from 'CE Certificate Medical class' to 'CE Certificate'. The translation files have been updated.
- Medical Class -> Medical Device Class - Medical Category > Drug Category
The attributes for the Conformity Configuration (Medical Class, Medical Category, PPE Category, and In Vitro Diagnostics) had no views associated to them, so the only way of accessing them was through the entry they have in the form for product.template. With this PR, tree views and their actions have been added, so that they can be reused in other modules to accessed them from custom menu-items.
Currently translated at 100.0% (52 of 52 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_medical Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_medical/ca/
Currently translated at 84.6% (44 of 52 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_medical Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_medical/de/
Currently translated at 100.0% (52 of 52 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_medical Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_medical/es/
c05b7bc
to
943de0f
Compare
@sebalix thanks for your suggestion. I added migrations script and fixed commit |
943de0f
to
cf0503e
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.
Tested on runboat, LG.
Regarding migration script, I could not test it but if something doesn't work we'll fix it ASAP anyway.
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at c544846. Thanks a lot for contributing to OCA. ❤️ |
Changes: