-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
[15.0][MIG] maintenance_equipment_sequence #174
[15.0][MIG] maintenance_equipment_sequence #174
Conversation
Currently translated at 100.0% (10 of 10 strings) Translation: maintenance-11.0/maintenance-11.0-maintenance_equipment_sequence Translate-URL: https://translation.odoo-community.org/projects/maintenance-11-0/maintenance-11-0-maintenance_equipment_sequence/es/
Currently translated at 100.0% (10 of 10 strings) Translation: maintenance-13.0/maintenance-13.0-maintenance_equipment_sequence Translate-URL: https://translation.odoo-community.org/projects/maintenance-13-0/maintenance-13-0-maintenance_equipment_sequence/it/
3f1265d
to
b0ab5d2
Compare
b0ab5d2
to
f781f09
Compare
maintenance_equipment_sequence/tests/test_maintenance_equipment_sequence.py
Outdated
Show resolved
Hide resolved
f781f09
to
9e37e98
Compare
maintenance_equipment_sequence/migrations/15.0.1.0.0/pre-migration.py
Outdated
Show resolved
Hide resolved
|
||
if not version: | ||
return | ||
|
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.
It would be great to create two new legacy columns with the old values (code and serial_no). This way if an implementation worked with serials but wanted to change the code to serial no by default and move the old serial no to a new field , they can execute a script later. Would be great to have an example of this SQL script on the comment of the migration.
In order to be able to pass this changes to older versions. Check if the code column exists. In this case, the migration has already been done.
<field name="name">equipment.form</field> | ||
<field name="model">maintenance.equipment</field> | ||
<field name="inherit_id" ref="maintenance.hr_equipment_view_form" /> | ||
<field name="arch" type="xml"> |
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.
Put a 99 priority, as other modules could have problem with the duplication of the field.
Also make the original serial_no invisible
maintenance_equipment_sequence/migrations/15.0.1.0.0/pre-migration.py
Outdated
Show resolved
Hide resolved
89e5653
to
aacc1d3
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.
Functional review (including migration scripts) 👍
aacc1d3
to
151c2b4
Compare
This PR has the |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 92c71f6. Thanks a lot for contributing to OCA. ❤️ |
/ocabot migration maintenance_equipment_sequence |
No description provided.