mirror of
https://gitlab.com/flectra-community/server-ux.git
synced 2024-11-15 02:32:06 +00:00
138 lines
5.8 KiB
XML
138 lines
5.8 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!-- Copyright 2017-19 ForgeFlow S.L. (https://www.forgeflow.com)
|
|
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" />
|
|
<widget
|
|
name="web_ribbon"
|
|
text="Archived"
|
|
bg_color="bg-danger"
|
|
attrs="{'invisible': [('active', '=', True)]}"
|
|
/>
|
|
<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>
|
|
<field name="active" invisible="1" />
|
|
<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="approve_sequence" />
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page name="apply" string="Apply On">
|
|
<group name="bottom">
|
|
<field name="definition_type" />
|
|
<field
|
|
name="definition_domain"
|
|
widget="domain"
|
|
options="{'model': 'model'}"
|
|
attrs="{'invisible': [('definition_type', '!=', 'domain')]}"
|
|
/>
|
|
</group>
|
|
</page>
|
|
<page name="options" string="More Options">
|
|
<group name="more_option">
|
|
<group name="notify">
|
|
<field name="notify_on_create" />
|
|
<field name="has_comment" />
|
|
</group>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
</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_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>
|