[IMP] hr: Support versioning of work permit no - #5236
Conversation
|
This PR targets the un-managed branch odoo-dev/odoo:master-hr-onboarding-amgom, it needs to be retargeted before it can be merged. |
| { | ||
| 'name': 'Employees', | ||
| 'version': '1.1', | ||
| 'version': '1.2', |
There was a problem hiding this comment.
Aren't we supposed to increase the version to trigger the upgrade migration script.
Upgrade scripts are automatically executed by Odoo when upgrading a module if its version number has been bumped.
There was a problem hiding this comment.
No, the version number not changed, you need to check the module version and use it on the upgrade script not the vice,
you supposed to use 1,1 version and update the upgrade script
usseif97
left a comment
There was a problem hiding this comment.
Thanks for your work,
You've successfully moved the permit number to the version model, but you also need to move the other related fields and methods to the version model.
Take a look for the related and move them also
Support versioning of work permit no by adding the field in the hr_version table Add upgrade script for the module update and corresponding upgrade test case Task: 6452365
118f16c to
3007eda
Compare
usseif97
left a comment
There was a problem hiding this comment.
Just update the module version and the upgrade script
Support versioning of work permit no by adding the field in the hr_version table
Add upgrade script for the module update and corresponding upgrade test case
Task: 6452365