mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_menu_navbar_needaction: Several improvements: * Make the menu reflow after updating needactions * Allow to disable needaction completely or to set a custom domain * Support for clicking the number to end up on the first action * No need to block the UI for our request * Don't crash on corner cases, filter out search defaults from context, disable custom filters * Allow to define needaction domains for any menu * Support server actions * Support models implementing the function, but not the interface * Show a main menu's child needaction counters
17 lines
704 B
XML
17 lines
704 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="edit_menu_access" model="ir.ui.view">
|
|
<field name="model">ir.ui.menu</field>
|
|
<field name="inherit_id" ref="base.edit_menu_access" />
|
|
<field name="arch" type="xml">
|
|
<field name="sequence" position="after">
|
|
<field name="needaction_enabled" invisible="1" />
|
|
<field name="needaction" />
|
|
<field name="needaction_domain" attrs="{'invisible': [('needaction', '=', False)]}" placeholder="Fill in a domain for a custom needaction" />
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|