3
0
Fork 0

[ADD][web_action_conditionable] demo data

8.0
Holger Brunn 2019-02-27 16:43:41 +01:00
parent 306cf16adf
commit d47afaef37
2 changed files with 22 additions and 0 deletions

View File

@ -11,6 +11,9 @@
'web',
],
"license": "AGPL-3",
"demo": [
"demo/ir_ui_view.xml",
],
'data': [
'views/view.xml'
],

View File

@ -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>