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.
34 lines
1.2 KiB
34 lines
1.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2018 Tecnativa - Jairo Llopis
|
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
|
|
|
<data>
|
|
|
|
<record id="view_partner_form" model="ir.ui.view">
|
|
<field name="name">Add consent smart button</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field
|
|
name="groups_id"
|
|
eval="[(4, ref('privacy.group_data_protection_user'))]"
|
|
/>
|
|
<field name="arch" type="xml">
|
|
<div name="button_box" position="inside">
|
|
<button
|
|
attrs='{"invisible": [("privacy_consent_count", "=", 0)]}'
|
|
class="oe_stat_button"
|
|
context='{"search_default_partner_id": active_id}'
|
|
icon="fa-handshake-o"
|
|
name="%(consent_action)d"
|
|
type="action"
|
|
>
|
|
<field
|
|
name="privacy_consent_count"
|
|
widget="statinfo"
|
|
/>
|
|
</button>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|