[18.0][MIG] purchase_work_acceptance_tier_validation: Migration to 18.0#3096
[18.0][MIG] purchase_work_acceptance_tier_validation: Migration to 18.0#3096ROBBYHOOD9 wants to merge 10 commits into
Conversation
BhaveshHeliconia
left a comment
There was a problem hiding this comment.
Code review LGTM!
|
This PR has the |
5 similar comments
|
This PR has the |
|
This PR has the |
|
This PR has the |
|
This PR has the |
|
This PR has the |
85240e3 to
f7b54f7
Compare
Migration
purchase_work_acceptance_tier_validationfrom 15.0 to 18.01. Module Version
Updated the module version to align with Odoo 18.
"version": "15.0.1.0.0", => "version": "18.0.1.0.0",
2. Update "Needs my Review" Filter
Adjusted the filter domain in views/work_acceptance_view.xml to match the state values available in Odoo 18.
Since Odoo 18 only uses draft, accept, and cancel, the obsolete states done and to approve were removed from the domain.
Before --> domain="[('reviewer_ids','in',uid), ('state', 'not in', ['done', 'cancel', 'to approve'])]"
After --> domain="[('reviewer_ids','in',uid), ('state', 'not in', ['accept', 'cancel'])]"
3. Test Updates
Updated the test setup to follow the testing conventions introduced in newer Odoo versions:
Before
After