You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.4 KiB

<openerp>
<data>
<record model="ir.ui.view" id="view_groups_form">
<field name="inherit_id" ref="base.view_groups_form" />
<field name="view_type">form</field>
<field name="model">res.groups</field>
<field name="arch" type="xml">
<data>
<field name="name" position="after">
<field name="is_dynamic" />
</field>
<field name="users" position="attributes">
<attribute name="attrs">{'readonly': [('is_dynamic', '=', True)]}</attribute>
</field>
<field name="users" position="before">
<group name="auth_dynamic_groups" attrs="{'invisible': [('is_dynamic', '=', False)]}">
<field
name="dynamic_group_condition"
placeholder="Fill in your condition..."
attrs="{'required': [('is_dynamic', '=', True)]}"
colspan="4" nolabel="1" />
<button
type="object"
name="action_evaluate"
string="Evaluate" />
</group>
</field>
</data>
</field>
</record>
</data>
</openerp>