Contributors mailing list archives


Error after uninstall addon that has modified action's context

Ecosoft Co. Ltd., Kitti Upariphutthiphong
- 10/05/2017 06:55:49

I have a small problem with this module.

Since, it is using existing action, and adding a context value, is_order

    <record id="sale.action_orders" model="ir.actions.act_window">
        <field name="context">{'is_order': True, }</field>
        <field name="domain">[('is_order', '=', True), ]</field>

Install it to use this feature is OK. But when we uninstall it, the context still there. And so, clicking on the menu will give error.

ValueError: Invalid field 'is_order' in leaf "<osv.ExtendedLeaf: ('is_order', '=', True) on sale_order (ctx: )>"

Any advise on how to remove this value back to original?

Thank you,