Mustufa Kantawala
4 years ago
6 changed files with 200 additions and 169 deletions
-
1oca_dependencies.txt
-
29privacy_partner_report/__manifest__.py
-
46privacy_partner_report/report/privacy_partner_xlsx.py
-
5privacy_partner_report/views/privacy_menu_view.xml
-
192privacy_partner_report/wizard/privacy_report_partner.py
-
58privacy_partner_report/wizard/privacy_report_partner_wizard.xml
@ -1,2 +1 @@ |
|||
reporting-engine |
|||
|
@ -1,20 +1,19 @@ |
|||
# Copyright 2018 Eficent Business and IT Consulting Services S.L. |
|||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html |
|||
{ |
|||
'name': 'Privacy Partner Report', |
|||
'version': '13.0.1.0.0', |
|||
'category': 'GDPR', |
|||
'summary': 'Show the transactions that a specific partner is involved in.', |
|||
'author': "Eficent, " |
|||
"Odoo Community Association (OCA)", |
|||
'website': 'https://github.com/OCA/data-protection/', |
|||
'license': 'AGPL-3', |
|||
'depends': ['privacy', 'report_xlsx'], |
|||
'data': [ |
|||
'wizard/privacy_report_partner_wizard.xml', |
|||
'views/privacy_report.xml', |
|||
'views/privacy_menu_view.xml', |
|||
"name": "Privacy Partner Report", |
|||
"version": "13.0.1.0.0", |
|||
"category": "GDPR", |
|||
"summary": "Show the transactions that a specific partner is involved in.", |
|||
"author": "Eficent, " "Odoo Community Association (OCA)", |
|||
"website": "https://github.com/OCA/data-protection/", |
|||
"license": "AGPL-3", |
|||
"depends": ["privacy", "report_xlsx"], |
|||
"data": [ |
|||
"wizard/privacy_report_partner_wizard.xml", |
|||
"views/privacy_report.xml", |
|||
"views/privacy_menu_view.xml", |
|||
], |
|||
'installable': True, |
|||
'maintainers': ['mreficent'], |
|||
"installable": True, |
|||
"maintainers": ["mreficent"], |
|||
} |
@ -1,13 +1,12 @@ |
|||
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L. |
|||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> |
|||
<odoo> |
|||
|
|||
<menuitem id="menu_privacy_report_privacy_report" |
|||
<menuitem |
|||
id="menu_privacy_report_privacy_report" |
|||
name="Partner Report" |
|||
parent="privacy.menu_data_protection_report" |
|||
groups="privacy.group_data_protection_user" |
|||
sequence="10" |
|||
action="privacy_partner_report.action_privacy_partner_menu" |
|||
/> |
|||
|
|||
</odoo> |
@ -1,49 +1,75 @@ |
|||
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L. |
|||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> |
|||
<odoo> |
|||
|
|||
<record id="privacy_partner_report_wizard" model="ir.ui.view"> |
|||
<field name="name">Partner Report</field> |
|||
<field name="model">privacy.partner.report</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Report Options"> |
|||
<header> |
|||
<button name="button_export_xlsx" string="Export XLSX" type="object" default_focus="1" class="oe_highlight"/> |
|||
<button |
|||
name="button_export_xlsx" |
|||
string="Export XLSX" |
|||
type="object" |
|||
default_focus="1" |
|||
class="oe_highlight" |
|||
/> |
|||
</header> |
|||
<group groups="base.group_multi_company"> |
|||
<group> |
|||
<span >Select a company</span><br/> |
|||
<field name="company_id" options="{'no_create': True}" nolabel="1" /> |
|||
<span>Select a company</span> |
|||
<br /> |
|||
<field |
|||
name="company_id" |
|||
options="{'no_create': True}" |
|||
nolabel="1" |
|||
/> |
|||
</group> |
|||
</group> |
|||
<group> |
|||
<group> |
|||
<span>Select a partner</span><br/> |
|||
<field name="partner_id" options="{'no_create': True}" nolabel="1" domain="[('company_id', 'in', [False, company_id])]"/> |
|||
<span>Select a partner</span> |
|||
<br /> |
|||
<field |
|||
name="partner_id" |
|||
options="{'no_create': True}" |
|||
nolabel="1" |
|||
domain="[('company_id', 'in', [False, company_id])]" |
|||
/> |
|||
</group> |
|||
</group> |
|||
<group string='Models with related partner data' attrs="{'invisible': [('partner_id', '=', False)]}" col="1"> |
|||
<field name="table_ids" options="{'no_create': True}" editable="bottom" nolabel="1"> |
|||
<group |
|||
string='Models with related partner data' |
|||
attrs="{'invisible': [('partner_id', '=', False)]}" |
|||
col="1" |
|||
> |
|||
<field |
|||
name="table_ids" |
|||
options="{'no_create': True}" |
|||
editable="bottom" |
|||
nolabel="1" |
|||
> |
|||
<tree> |
|||
<field name="model_id"/> |
|||
<field name="count_rows" text-align="right"/> |
|||
<button name="action_view_records" |
|||
type="object" icon="fa-info-circle" |
|||
attrs="{'invisible': [('count_rows', '=', '0')]}" /> |
|||
<field name="model_id" /> |
|||
<field name="count_rows" text-align="right" /> |
|||
<button |
|||
name="action_view_records" |
|||
type="object" |
|||
icon="fa-info-circle" |
|||
attrs="{'invisible': [('count_rows', '=', '0')]}" |
|||
/> |
|||
</tree> |
|||
</field> |
|||
</group> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_privacy_partner_menu" model="ir.actions.act_window"> |
|||
<field name="name">Partner Report</field> |
|||
<field name="res_model">privacy.partner.report</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="view_id" ref="privacy_partner_report_wizard"/> |
|||
<field name="view_id" ref="privacy_partner_report_wizard" /> |
|||
<field name="target">current</field> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue