Browse Source

[IMP] Update base_exception views

- Show menu only to Exception Rule Managers
- Use sequence and active widgets on tree view
- Updated form to use sheet
pull/1557/head
Iván Todorovich 6 years ago
parent
commit
7a9a692b42
  1. 2
      base_exception/__manifest__.py
  2. 25
      base_exception/views/base_exception_view.xml

2
base_exception/__manifest__.py

@ -5,7 +5,7 @@
{
'name': 'Exception Rule',
'version': '11.0.1.0.0',
'version': '11.0.1.1.0',
'category': 'Generic Modules',
'summary': """
This module provide an abstract model to manage customizable

25
base_exception/views/base_exception_view.xml

@ -5,11 +5,11 @@
<field name="model">exception.rule</field>
<field name="arch" type="xml">
<tree string="Exception Rule">
<field name="active"/>
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="description"/>
<field name="model"/>
<field name="sequence"/>
<field name="active" widget="boolean_toggle"/>
</tree>
</field>
</record>
@ -19,20 +19,26 @@
<field name="model">exception.rule</field>
<field name="arch" type="xml">
<form string="Exception Rule Setup" name="exception_rule">
<group colspan="4" col="2">
<sheet>
<group>
<group>
<field name="name"/>
<field name="description"/>
</group>
<group colspan="4" groups="base_exception.group_exception_rule_manager">
<group>
<field name="active"/>
<field name="sequence"/>
</group>
<group colspan="4" col="2" groups="base.group_system">
</group>
<group>
<group colspan="4" groups="base.group_system">
<field name="rule_group"/>
<field name="model"/>
<field name="next_state"/>
<field name="code"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
@ -46,5 +52,12 @@
<field name="context">{'active_test': False}</field>
</record>
<menuitem action="action_exception_rule_tree" id="menu_action_exception" parent="base.menu_custom" sequence="90" />
<menuitem
action="action_exception_rule_tree"
id="menu_action_exception"
parent="base.menu_custom"
sequence="90"
groups="base_exception.group_exception_rule_manager"
/>
</odoo>
Loading…
Cancel
Save