[IMP] web_menu_navbar_needaction: reflow, new features (#265)

[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
This commit is contained in:
Holger Brunn
2016-09-20 21:34:55 +02:00
committed by Pedro M. Baeza
parent 6e35172b30
commit 82088b11e1
6 changed files with 177 additions and 12 deletions

View File

@@ -0,0 +1,16 @@
<?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>