mirror of
https://gitlab.com/flectra-community/server-ux.git
synced 2024-12-23 21:01:49 +00:00
35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!-- Copyright 2017 ForgeFlow S.L.
|
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
|
<flectra>
|
|
<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="inherit_id" ref="base_tier_validation.tier_definition_view_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form/sheet/group" position="after">
|
|
<group col="4">
|
|
<field
|
|
name="reviewer_expression"
|
|
colspan="4"
|
|
invisible="review_type != 'expression'"
|
|
/>
|
|
</group>
|
|
</xpath>
|
|
<xpath expr="//field[@name='definition_domain']" position="attributes">
|
|
<attribute
|
|
name="invisible"
|
|
>definition_type not in ('domain', 'domain_formula')</attribute>
|
|
</xpath>
|
|
<field name="definition_domain" position="after">
|
|
<field
|
|
name="python_code"
|
|
widget="code"
|
|
options="{'mode': 'python'}"
|
|
invisible="definition_type not in ('formula', 'domain_formula')"
|
|
/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</flectra>
|