mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 15:32:06 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,76 @@
|
|||
<?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="activity_form" model="ir.ui.view">
|
||||
<field name="name">Add consent fields</field>
|
||||
<field name="model">privacy.activity</field>
|
||||
<field name="inherit_id" ref="privacy.activity_form" />
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button
|
||||
attrs='{"invisible": [("consent_required", "=", False)]}'
|
||||
class="oe_stat_button"
|
||||
context='{"search_default_activity_id": active_id}'
|
||||
icon="fa-handshake-o"
|
||||
name="%(consent_action)d"
|
||||
type="action"
|
||||
>
|
||||
<field name="consent_count" widget="statinfo" />
|
||||
</button>
|
||||
</div>
|
||||
<notebook name="advanced" position="inside">
|
||||
<page string="Consent" name="consent">
|
||||
<group>
|
||||
<label for="consent_required" />
|
||||
<div>
|
||||
<field name="consent_required" class="oe_inline" />
|
||||
<button
|
||||
attrs='{"invisible": [("consent_required", "!=", "manual")]}'
|
||||
class="btn-link"
|
||||
icon="fa-user-plus"
|
||||
name="action_new_consents"
|
||||
type="object"
|
||||
string="Generate missing draft consent requests"
|
||||
/>
|
||||
<button
|
||||
attrs='{"invisible": [("consent_required", "!=", "auto")]}'
|
||||
class="btn-link"
|
||||
icon="fa-user-plus"
|
||||
name="action_new_consents"
|
||||
type="object"
|
||||
string="Generate and enqueue missing consent requests"
|
||||
confirm="This could enqueue many consent emails, are you sure to proceed?"
|
||||
/>
|
||||
</div>
|
||||
</group>
|
||||
<group attrs='{"invisible": [("consent_required", "=", False)]}'>
|
||||
<group>
|
||||
<field name="default_consent" />
|
||||
<field name="server_action_id" groups="base.group_no_one" />
|
||||
</group>
|
||||
<group>
|
||||
<field
|
||||
name="consent_template_default_body_html"
|
||||
invisible="1"
|
||||
/>
|
||||
<field
|
||||
name="consent_template_default_subject"
|
||||
invisible="1"
|
||||
/>
|
||||
<field
|
||||
name="consent_template_id"
|
||||
attrs='{"required": [("consent_required", "=", "auto")]}'
|
||||
context='{
|
||||
"default_model": "privacy.consent",
|
||||
"default_body_html": consent_template_default_body_html,
|
||||
"default_subject": consent_template_default_subject,
|
||||
}'
|
||||
/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
<?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 model="ir.ui.view" id="consent_form">
|
||||
<field name="name">Privacy Consent Form</field>
|
||||
<field name="model">privacy.consent</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<button
|
||||
type="object"
|
||||
name="action_manual_ask"
|
||||
class="oe_highlight"
|
||||
string="Ask for consent"
|
||||
/>
|
||||
<field name="state" widget="statusbar" />
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<field name="active" invisible="1" />
|
||||
<widget
|
||||
name="web_ribbon"
|
||||
title="Archived"
|
||||
bg_color="bg-danger"
|
||||
attrs="{'invisible': [('active', '=', True)]}"
|
||||
/>
|
||||
</div>
|
||||
<group>
|
||||
<field name="partner_id" />
|
||||
<field name="activity_id" />
|
||||
<field name="accepted" />
|
||||
<field name="last_metadata" />
|
||||
</group>
|
||||
</sheet>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids" widget="mail_followers" />
|
||||
<field name="message_ids" widget="mail_thread" />
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="consent_tree">
|
||||
<field name="name">Privacy Consent Tree</field>
|
||||
<field name="model">privacy.consent</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="activity_id" />
|
||||
<field name="partner_id" />
|
||||
<field name="state" />
|
||||
<field name="accepted" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="consent_search">
|
||||
<field name="name">Privacy Consent Search</field>
|
||||
<field name="model">privacy.consent</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="activity_id" />
|
||||
<field name="partner_id" />
|
||||
<field name="state" />
|
||||
<field name="accepted" />
|
||||
<separator />
|
||||
<filter
|
||||
string="Archived"
|
||||
name="inactive"
|
||||
domain="[('active', '=', False)]"
|
||||
/>
|
||||
<separator />
|
||||
<group string="Group By" name="groupby">
|
||||
<filter
|
||||
name="activity_id_groupby"
|
||||
string="Activity"
|
||||
context="{'group_by': 'activity_id'}"
|
||||
/>
|
||||
<filter
|
||||
name="state_groupby"
|
||||
string="State"
|
||||
context="{'group_by': 'state'}"
|
||||
/>
|
||||
<filter
|
||||
name="accepted_groupby"
|
||||
string="Accepted"
|
||||
context="{'group_by': 'accepted'}"
|
||||
/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="consent_action">
|
||||
<field name="name">Consents</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">privacy.consent</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem
|
||||
action="consent_action"
|
||||
id="menu_privacy_consent"
|
||||
parent="privacy.menu_data_protection_master_data"
|
||||
/>
|
||||
</data>
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
<?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="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}'
|
||||
groups="privacy.group_data_protection_user"
|
||||
icon="fa-handshake-o"
|
||||
name="%(consent_action)d"
|
||||
type="action"
|
||||
>
|
||||
<field name="privacy_consent_count" widget="statinfo" />
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
Loading…
Add table
Add a link
Reference in a new issue