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.

28 lines
1.1 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 2018 Tecnativa - Jairo Llopis
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <data>
  5. <record id="view_partner_form" model="ir.ui.view">
  6. <field name="name">Add consent smart button</field>
  7. <field name="model">res.partner</field>
  8. <field name="inherit_id" ref="base.view_partner_form" />
  9. <field
  10. name="groups_id"
  11. eval="[(4, ref('privacy.group_data_protection_user'))]"
  12. />
  13. <field name="arch" type="xml">
  14. <div name="button_box" position="inside">
  15. <button
  16. attrs='{"invisible": [("privacy_consent_count", "=", 0)]}'
  17. class="oe_stat_button"
  18. context='{"search_default_partner_id": active_id}'
  19. icon="fa-handshake-o"
  20. name="%(consent_action)d"
  21. type="action"
  22. >
  23. <field name="privacy_consent_count" widget="statinfo" />
  24. </button>
  25. </div>
  26. </field>
  27. </record>
  28. </data>