Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Error after uninstall addon that has modified action's context

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


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>
    </record>

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,

Follow-Ups