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.

37 lines
1.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="res_partner_view_buttons" model="ir.ui.view">
  4. <field name="name">res.partner.view.buttons</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_form" />
  7. <field name="priority" eval="18"/>
  8. <field name="groups_id" eval="[(4, ref('partner_changeset.group_changeset_user'))]"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//div[@name='button_box']" position="inside">
  11. <button class="oe_inline oe_stat_button"
  12. type="action"
  13. name="%(partner_changeset.action_res_partner_changeset_view)d"
  14. context="{'search_default_draft': 1, 'search_default_partner_id': active_id}"
  15. icon="fa-code-fork">
  16. <field string="Changes"
  17. name="count_pending_changesets"
  18. widget="statinfo"/>
  19. </button>
  20. </xpath>
  21. </field>
  22. </record>
  23. <record id="view_res_partner_filter" model="ir.ui.view">
  24. <field name="name">res.partner.select</field>
  25. <field name="model">res.partner</field>
  26. <field name="inherit_id" ref="base.view_res_partner_filter" />
  27. <field name="arch" type="xml">
  28. <filter name="customer" position="after">
  29. <separator/>
  30. <filter string="Pending Changesets"
  31. name="pending_changesets"
  32. domain="[('count_pending_changesets', '>', 0)]"/>
  33. </filter>
  34. </field>
  35. </record>
  36. </odoo>