Browse Source
Merge pull request #1205 from hbrunn/8.0-web_action_conditionable-form
Merge pull request #1205 from hbrunn/8.0-web_action_conditionable-form
[ADD][web_action_conditionable] support formspull/581/merge
Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 152 additions and 14 deletions
-
5web_action_conditionable/__openerp__.py
-
19web_action_conditionable/demo/ir_ui_view.xml
-
21web_action_conditionable/readme/DESCRIPTION.rst
-
118web_action_conditionable/static/src/js/views.js
-
3web_action_conditionable/tests/test_action_conditionable.py
@ -0,0 +1,19 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<openerp> |
|||
<data> |
|||
<record id="view_res_groups_form" model="ir.ui.view"> |
|||
<field name="model">res.groups</field> |
|||
<field name="inherit_id" ref="base.view_groups_form" /> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='model_access']/tree" position="attributes"> |
|||
<attribute name="create">name == 'Access Rights'</attribute> |
|||
<attribute name="delete">name != 'Access Rights'</attribute> |
|||
</xpath> |
|||
<xpath expr="." position="attributes"> |
|||
<attribute name="edit">name == 'Access Rights'</attribute> |
|||
<attribute name="delete">name != 'Access Rights'</attribute> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue