odoo/upgrade-util#18
Created by Nishit Thakkar (thni)
Blocked
- Merge method
- Review
-
CI
- ci/runbot: Test upgrades between stable versions
- ci/upgrade_enterprise: Test upgrades for enterprise master
- label
- odoo-dev:master-update_filter_context-thni
- head
- 585940df33a11be95067499649ba821478273350
odoo/upgrade-util | |
---|---|
master | #18 missing r+ |
[FIX] util/fields : update field in context of custom search view
This commit aims to make views compatible which are generated when a search filter is created using studio, view looks like
<data>
<xpath expr="xyz" position="after">
<filter name="filter1" context="{'group_by': 'renamed field'}"/>
<filter name="filter2" context="{'group_by': 'removed field'}"/>
</xpath>
</data>
Currently after upgrade this view will be disabled because we are not updating the field in this view.
After this fix
view:
<data>
<xpath expr="xyz" position="after">
<filter name="filter1" context="{'group_by': 'New Name'}"/>
<filter name="filter2" context="{}"/>
</xpath>
</data>
Alternative upgrade PR
idk whether update_custom_filter is in correct file any suggestion where it should be ?