Browse Source
Merge pull request #8 from dreispt/11.0-add_base
Merge pull request #8 from dreispt/11.0-add_base
[11.0] Port `privacy` modulepull/18/head
Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 331 additions and 17 deletions
-
36.gitignore
-
46.travis.yml
-
13oca_dependencies.txt
-
21privacy/README.rst
-
1privacy/__init__.py
-
19privacy/__manifest__.py
-
2privacy/readme/CONTRIBUTORS.rst
-
2privacy/readme/DESCRIPTION.rst
-
3privacy/readme/USAGE.rst
-
25privacy/security/data_protection.xml
-
BINprivacy/static/description/icon.png
-
115privacy/static/description/icon.svg
-
65privacy/views/data_protection_menu_view.xml
@ -1,15 +1,4 @@ |
|||
# List the OCA project dependencies, one per line |
|||
# Add a repository url and branch if you need a forked version |
|||
# |
|||
# Examples |
|||
# ======== |
|||
# |
|||
# To depend on the standard version of sale-workflow, use: |
|||
# sale-workflow |
|||
# |
|||
# To explicitely give the URL of a fork, and still use the version specified in |
|||
# .travis.yml, use: |
|||
# sale-workflow https://github.com/OCA/sale-workflow |
|||
# |
|||
# To provide both the URL and a branch, use: |
|||
# sale-workflow https://github.com/OCA/sale-workflow branchname |
|||
reporting-engine |
@ -0,0 +1,21 @@ |
|||
**This file is going to be generated by oca-gen-addon-readme.** |
|||
|
|||
*Manual changes will be overwritten.* |
|||
|
|||
Please provide content in the ``readme`` directory: |
|||
|
|||
* **DESCRIPTION.rst** (required) |
|||
* INSTALL.rst (optional) |
|||
* CONFIGURE.rst (optional) |
|||
* **USAGE.rst** (optional, highly recommended) |
|||
* DEVELOP.rst (optional) |
|||
* ROADMAP.rst (optional) |
|||
* HISTORY.rst (optional, recommended) |
|||
* **CONTRIBUTORS.rst** (optional, highly recommended) |
|||
* CREDITS.rst (optional) |
|||
|
|||
Content of this README will also be drawn from the addon manifest, |
|||
from keys such as name, authors, maintainers, development_status, |
|||
and license. |
|||
|
|||
A good, one sentence summary in the manifest is also highly recommended. |
@ -0,0 +1 @@ |
|||
# Empty |
@ -0,0 +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': 'Data Privacy and Protection', |
|||
'version': '11.0.1.0.0', |
|||
'category': 'Data Protection', |
|||
'summary': 'Provides data privacy and protection features ' |
|||
'to comply to regulations, such as GDPR.', |
|||
'author': "Eficent, " |
|||
"Odoo Community Association (OCA)", |
|||
'website': 'http://www.github.com/OCA/data-protection', |
|||
'license': 'AGPL-3', |
|||
'data': [ |
|||
'security/data_protection.xml', |
|||
'views/data_protection_menu_view.xml', |
|||
], |
|||
'installable': True, |
|||
'application': True, |
|||
} |
@ -0,0 +1,2 @@ |
|||
* Miquel Raïch <miquel.raich@eficent.com> |
|||
* Daniel Reis <dreis.pt@hotmail.com> |
@ -0,0 +1,2 @@ |
|||
This application provides data protection and privacy feature, |
|||
to comply with regulations such as GDPR. |
@ -0,0 +1,3 @@ |
|||
#. Go to "Data Protection" Application |
|||
#. Go to Configuration > "Settings" menu |
|||
#. Enable the main features available. |
@ -0,0 +1,25 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- 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> |
|||
<data noupdate="0"> |
|||
|
|||
<record model="ir.module.category" id="module_category_data_protection"> |
|||
<field name="name">Data Protection</field> |
|||
<field name="sequence">30</field> |
|||
</record> |
|||
|
|||
<record id="group_data_protection_user" model="res.groups"> |
|||
<field name="name">Data Protection User</field> |
|||
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> |
|||
<field name="category_id" ref="module_category_data_protection"/> |
|||
</record> |
|||
|
|||
<record id="group_data_protection_manager" model="res.groups"> |
|||
<field name="name">Data Protection Manager</field> |
|||
<field name="implied_ids" eval="[(4, ref('privacy.group_data_protection_user'))]"/> |
|||
<field name="category_id" ref="module_category_data_protection"/> |
|||
</record> |
|||
|
|||
</data> |
|||
</odoo> |
After Width: 128 | Height: 128 | Size: 2.1 KiB |
@ -0,0 +1,115 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<!-- Created with Inkscape (http://www.inkscape.org/) --> |
|||
|
|||
<svg |
|||
xmlns:dc="http://purl.org/dc/elements/1.1/" |
|||
xmlns:cc="http://creativecommons.org/ns#" |
|||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|||
xmlns:svg="http://www.w3.org/2000/svg" |
|||
xmlns="http://www.w3.org/2000/svg" |
|||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
|||
id="svg2" |
|||
version="1.1" |
|||
inkscape:version="0.92.3 (2405546, 2018-03-11)" |
|||
width="60" |
|||
height="60" |
|||
viewBox="0 0 60 60" |
|||
sodipodi:docname="icon.svg" |
|||
inkscape:export-filename="icon.png" |
|||
inkscape:export-xdpi="204.8" |
|||
inkscape:export-ydpi="204.8"> |
|||
<metadata |
|||
id="metadata8"> |
|||
<rdf:RDF> |
|||
<cc:Work |
|||
rdf:about=""> |
|||
<dc:format>image/svg+xml</dc:format> |
|||
<dc:type |
|||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|||
<dc:title /> |
|||
</cc:Work> |
|||
</rdf:RDF> |
|||
</metadata> |
|||
<defs |
|||
id="defs6" /> |
|||
<sodipodi:namedview |
|||
pagecolor="#ffffff" |
|||
bordercolor="#666666" |
|||
borderopacity="1" |
|||
objecttolerance="10" |
|||
gridtolerance="10" |
|||
guidetolerance="10" |
|||
inkscape:pageopacity="0" |
|||
inkscape:pageshadow="2" |
|||
inkscape:window-width="1853" |
|||
inkscape:window-height="1018" |
|||
id="namedview4" |
|||
showgrid="false" |
|||
inkscape:zoom="5.6568542" |
|||
inkscape:cx="-13.498037" |
|||
inkscape:cy="27.319233" |
|||
inkscape:window-x="67" |
|||
inkscape:window-y="34" |
|||
inkscape:window-maximized="1" |
|||
inkscape:current-layer="svg2" |
|||
showguides="true" |
|||
inkscape:guide-bbox="true"> |
|||
<sodipodi:guide |
|||
position="0,41.75" |
|||
orientation="1,0" |
|||
id="guide3360" |
|||
inkscape:locked="false" /> |
|||
<sodipodi:guide |
|||
position="60,60.074219" |
|||
orientation="1,0" |
|||
id="guide3362" |
|||
inkscape:locked="false" /> |
|||
<sodipodi:guide |
|||
position="0.17578125,60" |
|||
orientation="0,1" |
|||
id="guide3364" |
|||
inkscape:locked="false" /> |
|||
<sodipodi:guide |
|||
position="58.71196,-0.0055242717" |
|||
orientation="0,1" |
|||
id="guide3366" |
|||
inkscape:locked="false" /> |
|||
<sodipodi:guide |
|||
position="47.0625,10.9375" |
|||
orientation="-0.70710678,0.70710678" |
|||
id="guide3347" |
|||
inkscape:locked="false" /> |
|||
<sodipodi:guide |
|||
position="21.743534,47.376154" |
|||
orientation="-0.70710678,0.70710678" |
|||
id="guide23" |
|||
inkscape:locked="false" /> |
|||
</sodipodi:namedview> |
|||
<rect |
|||
style="opacity:1;fill:#0092d7;fill-opacity:1" |
|||
id="rect4147" |
|||
width="60" |
|||
height="60" |
|||
x="0" |
|||
y="0" /> |
|||
<path |
|||
style="opacity:1;fill:#000000;fill-opacity:0.39215686" |
|||
d="M 0.0078125,34.359568 0,60 36.1162,60.0088 47.0625,49.0625 37.871757,16.233181 21.743534,12.623846 Z" |
|||
id="rect4171" |
|||
inkscape:connector-curvature="0" |
|||
sodipodi:nodetypes="ccccccc" /> |
|||
<g |
|||
id="g4169" |
|||
transform="matrix(0.3061173,0,0,0.3061173,-1.0360053,-1.0457906)" |
|||
style="fill:#ffffff;stroke:none" /> |
|||
<g |
|||
aria-label="" |
|||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:9.38242626px;line-height:0%;font-family:FontAwesome;-inkscape-font-specification:FontAwesome;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78186888px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" |
|||
id="text3352"> |
|||
<path |
|||
d="m 44.064502,27.442816 c 1.038855,0 1.917886,0.399559 2.717006,1.118767 0.719207,0.799119 1.118767,1.67815 1.118767,2.717006 v 15.343092 c 0,1.118767 -0.39956,1.997799 -1.118767,2.717006 -0.79912,0.799119 -1.678151,1.118767 -2.717006,1.118767 H 15.935499 c -1.118767,0 -1.997799,-0.319648 -2.717006,-1.118767 -0.79912,-0.719207 -1.118767,-1.598239 -1.118767,-2.717006 V 31.278589 c 0,-1.038856 0.319647,-1.917887 1.118767,-2.717006 0.719207,-0.719208 1.598239,-1.118767 2.717006,-1.118767 h 1.917886 v -5.75366 c 0,-2.157622 0.479472,-4.155421 1.598239,-6.073308 1.118767,-1.837974 2.557182,-3.276389 4.475069,-4.395156 C 25.764667,10.101925 27.762466,9.542541 30,9.542541 c 2.157623,0 4.155421,0.559384 6.073308,1.678151 1.837974,1.118767 3.276389,2.557182 4.395156,4.395156 1.118768,1.917887 1.678151,3.915686 1.678151,6.073308 v 5.75366 z m -8.310842,0 v -5.75366 c 0,-1.598239 -0.559384,-2.956742 -1.678151,-4.075509 C 32.956742,16.49488 31.598239,15.935496 30,15.935496 c -1.598239,0 -2.956742,0.559384 -4.075509,1.678151 -1.118767,1.118767 -1.67815,2.47727 -1.67815,4.075509 v 5.75366 z" |
|||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40.91491318px;line-height:1.25;font-family:'Font Awesome 5 Free';-inkscape-font-specification:'Font Awesome 5 Free';stroke-width:0.78186888px" |
|||
id="path25" /> |
|||
</g> |
|||
</svg> |
@ -0,0 +1,65 @@ |
|||
<?xml version="1.0"?> |
|||
<!-- 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> |
|||
<data> |
|||
|
|||
<record id="action_data_protection_partner_form" model="ir.actions.act_window"> |
|||
<field name="name">Partners</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="domain">[]</field> |
|||
<field name="filter" eval="True"/> |
|||
</record> |
|||
|
|||
<menuitem id="parent_menu_data_protection" |
|||
name="Privacy" |
|||
groups="group_data_protection_user" |
|||
web_icon="privacy,static/description/icon.png" |
|||
/> |
|||
|
|||
<menuitem id="menu_data_protection_master_data" |
|||
name="Master Data" |
|||
parent="parent_menu_data_protection" |
|||
groups="group_data_protection_user" |
|||
sequence="10" |
|||
/> |
|||
<menuitem id="menu_data_protection_partner" |
|||
name="Partners" |
|||
parent="menu_data_protection_master_data" |
|||
action="action_data_protection_partner_form" |
|||
sequence="1010" |
|||
/> |
|||
<menuitem id="menu_data_protection_transaction" |
|||
name="Transactions" |
|||
parent="parent_menu_data_protection" |
|||
groups="group_data_protection_user" |
|||
sequence="20" |
|||
/> |
|||
<menuitem id="menu_data_protection_report" |
|||
name="Reports" |
|||
parent="parent_menu_data_protection" |
|||
groups="group_data_protection_user" |
|||
sequence="30" |
|||
/> |
|||
|
|||
<record id="action_data_protection_config" model="ir.actions.act_window"> |
|||
<field name="name">Data Protection Settings</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">res.config.settings</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="target">inline</field> |
|||
<field name="context">{'module': 'data_protection'}</field> |
|||
</record> |
|||
<menuitem id="menu_data_protection_setting" |
|||
name="Settings" |
|||
parent="parent_menu_data_protection" |
|||
action="action_data_protection_config" |
|||
groups="group_data_protection_manager" |
|||
sequence="90" |
|||
/> |
|||
|
|||
</data> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue