|
|
@ -1,49 +0,0 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<odoo> |
|
|
|
<!-- Module Search View --> |
|
|
|
<record id="module_view_search" model="ir.ui.view"> |
|
|
|
<field name="name">updates.module.search</field> |
|
|
|
<field name="model">ir.module.module</field> |
|
|
|
<field name="inherit_id" ref="base.view_module_filter"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="category_id" position="after"> |
|
|
|
<filter name="scheduled_upgrades" string="Scheduled Upgrades" domain="[('state', '=', 'to upgrade')]"/> |
|
|
|
</field> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<!--Open Updates Action (updates apps list first)--> |
|
|
|
<record id="module_action_open_updates" model="ir.actions.server"> |
|
|
|
<field name="name">Open Updates and Update Apps List Server Action</field> |
|
|
|
<field name="model_id" ref="model_ir_module_module"/> |
|
|
|
<field name="code"> |
|
|
|
if model.update_list(): |
|
|
|
action = { |
|
|
|
'name': 'Updates', |
|
|
|
'type': 'ir.actions.act_window', |
|
|
|
'res_model': 'ir.module.module', |
|
|
|
'view_type': 'form', |
|
|
|
'view_mode': 'tree,form', |
|
|
|
'target': 'main', |
|
|
|
'context': '{"search_default_scheduled_upgrades": 1}', |
|
|
|
} |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<!--Apps / Updates menu item--> |
|
|
|
<menuitem |
|
|
|
name="Updates" |
|
|
|
action="module_action_open_updates" |
|
|
|
id="module_menu_updates" |
|
|
|
groups="base.group_no_one" |
|
|
|
parent="base.menu_management" |
|
|
|
sequence="20"/> |
|
|
|
|
|
|
|
<!-- Menu in Settings > Technical for standard Updates link --> |
|
|
|
<menuitem parent="base.menu_custom" sequence="27" name="Modules" id="menu_default_modules"/> |
|
|
|
|
|
|
|
<!-- Moved standard Updates link --> |
|
|
|
<record model="ir.ui.menu" id="base.menu_module_updates"> |
|
|
|
<field name="parent_id" ref="menu_default_modules"/> |
|
|
|
</record> |
|
|
|
</odoo> |