server-ux/base_tier_validation/views/tier_definition_view.xml

108 lines
4.7 KiB
XML
Raw Permalink Normal View History

2021-03-23 19:38:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<flectra>
<record id="tier_definition_view_tree" model="ir.ui.view">
<field name="name">tier.definition.tree</field>
<field name="model">tier.definition</field>
<field name="arch" type="xml">
<tree string="Tier Definition">
<field name="model_id"/>
<field name="name"/>
<field name="review_type"/>
<field name="reviewer_id"/>
<field name="reviewer_group_id"/>
<field name="sequence"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="active"/>
</tree>
</field>
</record>
<record id="tier_definition_view_form" model="ir.ui.view">
<field name="name">tier.definition.form</field>
<field name="model">tier.definition</field>
<field name="arch" type="xml">
<form string="Tier Definition">
<sheet>
<div class="oe_button_box" name="button_box">
<button name="toggle_active" type="object"
class="oe_stat_button" icon="fa-archive">
<field name="active" widget="boolean_button"/>
</button>
</div>
<div class="oe_title">
<span class="oe_edit_only">Name</span>
<h1>
<field name="name" required="1"
placeholder="e.g. Tier Validation for..."/>
</h1>
</div>
<group>
<group name="left">
<field name="model_id"
options="{'no_create': True}"/>
<field name="model" invisible="1"/>
<field name="review_type"/>
<field name="reviewer_id"
attrs="{'invisible': [('review_type', '!=', 'individual')]}"/>
<field name="reviewer_group_id"
attrs="{'invisible': [('review_type', '!=', 'group')]}"/>
</group>
<group name="right">
<field name="company_id"
groups="base.group_multi_company"
options="{'no_create': True}"/>
<field name="sequence"/>
<field name="notify_on_create"/>
</group>
</group>
<group name="bottom">
<field name="definition_type"/>
<field name="definition_domain" widget="domain" options="{'model': 'model'}"
attrs="{'invisible': [('definition_type', '!=', 'domain')]}"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="tier_definition_view_search" model="ir.ui.view">
<field name="name">tier.definition.search</field>
<field name="model">tier.definition</field>
<field name="arch" type="xml">
<search>
<field name="model_id"/>
<field name="reviewer_id"/>
<field name="reviewer_group_id"/>
<field name="active"/>
<separator/>
<filter string="All" name="all"
domain="['|', ('active', '=', False), ('active', '=', True)]"/>
<group expand="0" string="Group By">
<filter string="Model" name="model_id" domain="[]"
context="{'group_by':'model_id'}"/>
</group>
</search>
</field>
</record>
<record id="tier_definition_action" model="ir.actions.act_window">
<field name="name">Tier Definition</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">tier.definition</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{'search_default_all': 1}</field>
</record>
<menuitem id="menu_tier_confirmation"
name="Tier Validations"
parent="base.menu_custom"/>
<menuitem id="menu_tier_definition"
parent="menu_tier_confirmation"
action="tier_definition_action"/>
</flectra>