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 |
reporting-engine |
||||
|
|
@ -1,20 +1,19 @@ |
|||||
# Copyright 2018 Eficent Business and IT Consulting Services S.L. |
# Copyright 2018 Eficent Business and IT Consulting Services S.L. |
||||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html |
# 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. |
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L. |
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> |
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<menuitem id="menu_privacy_report_privacy_report" |
|
||||
|
<menuitem |
||||
|
id="menu_privacy_report_privacy_report" |
||||
name="Partner Report" |
name="Partner Report" |
||||
parent="privacy.menu_data_protection_report" |
parent="privacy.menu_data_protection_report" |
||||
groups="privacy.group_data_protection_user" |
groups="privacy.group_data_protection_user" |
||||
sequence="10" |
sequence="10" |
||||
action="privacy_partner_report.action_privacy_partner_menu" |
action="privacy_partner_report.action_privacy_partner_menu" |
||||
/> |
/> |
||||
|
|
||||
</odoo> |
</odoo> |
@ -1,49 +1,75 @@ |
|||||
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L. |
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L. |
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> |
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<record id="privacy_partner_report_wizard" model="ir.ui.view"> |
<record id="privacy_partner_report_wizard" model="ir.ui.view"> |
||||
<field name="name">Partner Report</field> |
<field name="name">Partner Report</field> |
||||
<field name="model">privacy.partner.report</field> |
<field name="model">privacy.partner.report</field> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<form string="Report Options"> |
<form string="Report Options"> |
||||
<header> |
<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> |
</header> |
||||
<group groups="base.group_multi_company"> |
<group groups="base.group_multi_company"> |
||||
<group> |
<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> |
||||
<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> |
</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> |
<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> |
</tree> |
||||
</field> |
</field> |
||||
</group> |
</group> |
||||
</form> |
</form> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
|
|
||||
<record id="action_privacy_partner_menu" model="ir.actions.act_window"> |
<record id="action_privacy_partner_menu" model="ir.actions.act_window"> |
||||
<field name="name">Partner Report</field> |
<field name="name">Partner Report</field> |
||||
<field name="res_model">privacy.partner.report</field> |
<field name="res_model">privacy.partner.report</field> |
||||
<field name="type">ir.actions.act_window</field> |
<field name="type">ir.actions.act_window</field> |
||||
<field name="view_mode">form</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> |
<field name="target">current</field> |
||||
</record> |
</record> |
||||
|
|
||||
</odoo> |
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue