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.

31 lines
1.4 KiB

  1. <openerp>
  2. <data>
  3. <record model="ir.ui.view" id="view_groups_form">
  4. <field name="inherit_id" ref="base.view_groups_form" />
  5. <field name="model">res.groups</field>
  6. <field name="arch" type="xml">
  7. <data>
  8. <field name="name" position="after">
  9. <field name="is_dynamic" />
  10. </field>
  11. <field name="users" position="attributes">
  12. <attribute name="attrs">{'readonly': [('is_dynamic', '=', True)]}</attribute>
  13. </field>
  14. <field name="users" position="before">
  15. <group name="auth_dynamic_groups" attrs="{'invisible': [('is_dynamic', '=', False)]}">
  16. <field
  17. name="dynamic_group_condition"
  18. placeholder="Fill in your condition..."
  19. attrs="{'required': [('is_dynamic', '=', True)]}"
  20. colspan="4" nolabel="1" />
  21. <button
  22. type="object"
  23. name="action_evaluate"
  24. string="Evaluate" />
  25. </group>
  26. </field>
  27. </data>
  28. </field>
  29. </record>
  30. </data>
  31. </openerp>