You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. <!-- Copyright 2019 Open Source Integrators
  2. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  3. <odoo>
  4. <record id="partner_form_tier" model="ir.ui.view">
  5. <field name="name">partner.form.tier</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form" />
  8. <field name="arch" type="xml">
  9. <!-- Tier Validation UI needs the state field to be in the form -->
  10. <field name="stage_id" position="before">
  11. <field name="state" invisible="1" />
  12. </field>
  13. </field>
  14. </record>
  15. <record id="partner_form_tier_filter" model="ir.ui.view">
  16. <field name="name">partner.form.tier.filter</field>
  17. <field name="model">res.partner</field>
  18. <field name="inherit_id" ref="base.view_res_partner_filter" />
  19. <field name="arch" type="xml">
  20. <filter name="inactive" position="before">
  21. <filter
  22. name="needs_review"
  23. string="Needs my Approval"
  24. domain="[('reviewer_ids', 'in', uid), ('state', '=', 'draft')]"
  25. help="Partner(s) to Approve"
  26. />
  27. </filter>
  28. </field>
  29. </record>
  30. </odoo>