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