mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD][web_action_conditionable] demo data
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
'web',
|
||||
],
|
||||
"license": "AGPL-3",
|
||||
"demo": [
|
||||
"demo/ir_ui_view.xml",
|
||||
],
|
||||
'data': [
|
||||
'views/view.xml'
|
||||
],
|
||||
|
||||
19
web_action_conditionable/demo/ir_ui_view.xml
Normal file
19
web_action_conditionable/demo/ir_ui_view.xml
Normal 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>
|
||||
Reference in New Issue
Block a user