partner-contact/partner_tier_validation/views/res_partner_view.xml

36 lines
1.3 KiB
XML
Raw Normal View History

2021-03-23 19:13:18 +00:00
<!-- Copyright 2019 Open Source Integrators
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<flectra>
<record id="partner_form_tier" model="ir.ui.view">
<field name="name">partner.form.tier</field>
<field name="model">res.partner</field>
2021-04-28 15:43:20 +00:00
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
2021-03-23 19:13:18 +00:00
2022-06-29 18:38:32 +00:00
<!-- Tier Validation UI needs the state field to be in the form -->
<field name="stage_id" position="before">
<field name="state" invisible="1" />
</field>
2021-03-23 19:13:18 +00:00
</field>
</record>
<record id="partner_form_tier_filter" model="ir.ui.view">
<field name="name">partner.form.tier.filter</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="arch" type="xml">
2021-04-28 15:43:20 +00:00
<filter name="inactive" position="before">
2021-03-23 19:13:18 +00:00
<filter
name="needs_review"
2021-04-28 15:43:20 +00:00
string="Needs my Approval"
2022-06-29 18:38:32 +00:00
domain="[('reviewer_ids', 'in', uid), ('state', '=', 'draft')]"
2021-04-28 15:43:20 +00:00
help="Partner(s) to Approve"
2021-03-23 19:13:18 +00:00
/>
</filter>
</field>
</record>
</flectra>