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.

57 lines
2.5 KiB

  1. <?xml version="1.0" ?>
  2. <odoo>
  3. <record id="view_exception_rule_tree" model="ir.ui.view">
  4. <field name="name">exception.rule.tree</field>
  5. <field name="model">exception.rule</field>
  6. <field name="arch" type="xml">
  7. <tree string="Exception Rule">
  8. <field name="active"/>
  9. <field name="name"/>
  10. <field name="description"/>
  11. <field name="model"/>
  12. <field name="sequence"/>
  13. </tree>
  14. </field>
  15. </record>
  16. <record id="view_exception_rule_form" model="ir.ui.view">
  17. <field name="name">exception.rule.form</field>
  18. <field name="model">exception.rule</field>
  19. <field name="arch" type="xml">
  20. <form string="Exception Rule Setup" name="exception_rule">
  21. <group colspan="4" col="2">
  22. <field name="name"/>
  23. <field name="description"/>
  24. </group>
  25. <group colspan="4" groups="base_exception.group_exception_rule_manager">
  26. <field name="active"/>
  27. <field name="sequence"/>
  28. </group>
  29. <group colspan="4" col="2" groups="base.group_system">
  30. <field name="rule_group"/>
  31. <field name="model"/>
  32. <field name="exception_type" widget="radio"/>
  33. <field name="domain"
  34. attrs="{'invisible': [('exception_type','!=','by_domain')]}
  35. "/>
  36. <field name="code"
  37. attrs="{'invisible': [('exception_type','!=','by_py_code')]}
  38. "/>
  39. </group>
  40. </form>
  41. </field>
  42. </record>
  43. <record id="action_exception_rule_tree" model="ir.actions.act_window">
  44. <field name="name">Exception Rules</field>
  45. <field name="res_model">exception.rule</field>
  46. <field name="view_type">form</field>
  47. <field name="view_mode">tree,form</field>
  48. <field name="view_id" ref="view_exception_rule_tree"/>
  49. <field name="context">{'active_test': False}</field>
  50. </record>
  51. <menuitem action="action_exception_rule_tree" id="menu_action_exception" parent="base.menu_custom" sequence="90" />
  52. </odoo>