Browse Source
[IMP] web_menu_navbar_needaction: reflow, new features (#265)
[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 counterspull/1028/head
Holger Brunn
8 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
6 changed files with 177 additions and 12 deletions
-
3web_menu_navbar_needaction/README.rst
-
1web_menu_navbar_needaction/__manifest__.py
-
108web_menu_navbar_needaction/models/ir_ui_menu.py
-
4web_menu_navbar_needaction/static/src/css/web_menu_navbar_needaction.css
-
57web_menu_navbar_needaction/static/src/js/web_menu_navbar_needaction.js
-
16web_menu_navbar_needaction/views/ir_ui_menu.xml
@ -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> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue