CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'm developing a custom module and need to disable a view from another module.
Manually view can be set inactive from: Settings->Technical->User Interface->Views. Then select the view and uncheck active checkbox.
What is the best way to do it?
One of options is to manipulate priority (sequence), you can add sequence to your view like this:
<record model="ir.ui.view" id="some_id">
<field eval="1" name="priority"/>
<field name="arch" type="xml"> . . . .
lower number of priority means higher priority. AFAIK it should not be negative, so Highest priority is 0 then. so if you set your view's priority to 0 or 1, then it'll become default one.
See documentation for "priority":
About This Community
Odoo Training Center
|Asked: 1/27/16, 2:00 PM|
|Seen: 996 times|
|Last updated: 2/29/16, 1:42 PM|