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.

41 lines
1.5 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. <xpath expr="/form/sheet" position="before">
  10. <header>
  11. <field
  12. name="state"
  13. widget="statusbar"
  14. options="{'clickable': '1'}"
  15. />
  16. <button name="dummy" invisible="True" />
  17. </header>
  18. </xpath>
  19. </field>
  20. </record>
  21. <record id="partner_form_tier_filter" model="ir.ui.view">
  22. <field name="name">partner.form.tier.filter</field>
  23. <field name="model">res.partner</field>
  24. <field name="inherit_id" ref="base.view_res_partner_filter" />
  25. <field name="arch" type="xml">
  26. <filter name="inactive" position="before">
  27. <filter
  28. name="needs_review"
  29. string="Needs my Approval"
  30. domain="[('reviewer_ids','in',uid), ('state', '=', 'draft'), '|', ('active','=', True), ('active', '=', False)]"
  31. help="Partner(s) to Approve"
  32. />
  33. </filter>
  34. </field>
  35. </record>
  36. </odoo>