Compare commits
merge into: OCA:11.0
OCA:10.0
OCA:11.0
OCA:12.0
OCA:12.0-personal_privacy_activity
OCA:13.0
OCA:14.0
OCA:15.0
OCA:8.0
OCA:9.0
OCA:oca_12.0
pull from: OCA:13.0
OCA:10.0
OCA:11.0
OCA:12.0
OCA:12.0-personal_privacy_activity
OCA:13.0
OCA:14.0
OCA:15.0
OCA:8.0
OCA:9.0
OCA:oca_12.0
No commits in common. '11.0' and '13.0' have entirely different histories.
124 changed files with 3621 additions and 7588 deletions
-
4.editorconfig
-
180.eslintrc.yml
-
10.flake8
-
36.gitignore
-
12.isort.cfg
-
103.pre-commit-config.yaml
-
8.prettierrc.yml
-
88.pylintrc
-
66.pylintrc-mandatory
-
81.travis.yml
-
3CONTRIBUTING.md
-
16README.md
-
89contact_search_form/README.rst
-
3contact_search_form/__init__.py
-
33contact_search_form/__manifest__.py
-
156contact_search_form/i18n/contact_search_form.pot
-
161contact_search_form/i18n/de.po
-
161contact_search_form/i18n/en_US.po
-
158contact_search_form/i18n/fr.po
-
158contact_search_form/i18n/it.po
-
3contact_search_form/models/__init__.py
-
84contact_search_form/models/contact_search.py
-
3contact_search_form/readme/CONFIGURE.rst
-
2contact_search_form/readme/DESCRIPTION.rst
-
9contact_search_form/readme/USAGE.rst
-
8contact_search_form/security/gdpr_security.xml
-
3contact_search_form/security/ir.model.access.csv
-
BINcontact_search_form/static/description/icon.png
-
431contact_search_form/static/description/index.html
-
79contact_search_form/views/contact_search.xml
-
4oca_dependencies.txt
-
11privacy/README.rst
-
40privacy/__manifest__.py
-
6privacy/demo/res_users.xml
-
286privacy/i18n/de.po
-
215privacy/i18n/es.po
-
293privacy/i18n/fr.po
-
362privacy/i18n/hr.po
-
232privacy/i18n/it.po
-
228privacy/i18n/privacy.pot
-
211privacy/i18n/pt.po
-
23privacy/models/privacy_activity.py
-
1privacy/readme/CONTRIBUTORS.rst
-
22privacy/security/data_protection.xml
-
7privacy/static/description/index.html
-
74privacy/views/data_protection_menu_view.xml
-
98privacy/views/privacy_activity_view.xml
-
10privacy_consent/README.rst
-
9privacy_consent/__manifest__.py
-
39privacy_consent/controllers/main.py
-
28privacy_consent/data/ir_actions_server.xml
-
7privacy_consent/data/ir_cron.xml
-
116privacy_consent/data/mail.xml
-
237privacy_consent/i18n/de.po
-
242privacy_consent/i18n/es.po
-
494privacy_consent/i18n/fr.po
-
273privacy_consent/i18n/privacy_consent.pot
-
242privacy_consent/i18n/pt.po
-
61privacy_consent/models/mail_mail.py
-
24privacy_consent/models/mail_template.py
-
92privacy_consent/models/privacy_activity.py
-
82privacy_consent/models/privacy_consent.py
-
14privacy_consent/models/res_partner.py
-
6privacy_consent/static/description/index.html
-
7privacy_consent/static/src/css/privacy_consent.scss
-
13privacy_consent/templates/assets.xml
-
18privacy_consent/templates/form.xml
-
279privacy_consent/tests/test_consent.py
-
28privacy_consent/views/privacy_activity.xml
-
68privacy_consent/views/privacy_consent.xml
-
12privacy_consent/views/res_partner.xml
-
91privacy_partner_report/README.rst
-
2privacy_partner_report/__init__.py
-
20privacy_partner_report/__manifest__.py
-
174privacy_partner_report/i18n/de.po
-
174privacy_partner_report/i18n/it.po
-
172privacy_partner_report/i18n/privacy_partner_report.pot
-
1privacy_partner_report/readme/CONTRIBUTORS.rst
-
2privacy_partner_report/readme/DESCRIPTION.rst
-
5privacy_partner_report/readme/USAGE.rst
-
1privacy_partner_report/report/__init__.py
-
83privacy_partner_report/report/privacy_partner_xlsx.py
-
BINprivacy_partner_report/static/description/icon.png
-
432privacy_partner_report/static/description/index.html
-
14privacy_partner_report/views/privacy_menu_view.xml
-
12privacy_partner_report/views/privacy_report.xml
-
1privacy_partner_report/wizard/__init__.py
-
253privacy_partner_report/wizard/privacy_report_partner.py
-
51privacy_partner_report/wizard/privacy_report_partner_wizard.xml
-
2setup/_metapackage/VERSION.txt
-
2setup/_metapackage/setup.cfg
-
11setup/_metapackage/setup.py
-
1setup/contact_search_form/odoo/addons/contact_search_form
-
2setup/contact_search_form/setup.cfg
-
6setup/contact_search_form/setup.py
-
2setup/privacy/setup.cfg
-
2setup/privacy_consent/setup.cfg
-
1setup/privacy_partner_report/odoo/addons/privacy_partner_report
-
2setup/privacy_partner_report/setup.cfg
-
6setup/privacy_partner_report/setup.py
@ -0,0 +1,180 @@ |
|||||
|
env: |
||||
|
browser: true |
||||
|
|
||||
|
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449 |
||||
|
parserOptions: |
||||
|
ecmaVersion: 2017 |
||||
|
|
||||
|
# Globals available in Odoo that shouldn't produce errorings |
||||
|
globals: |
||||
|
_: readonly |
||||
|
$: readonly |
||||
|
fuzzy: readonly |
||||
|
jQuery: readonly |
||||
|
moment: readonly |
||||
|
odoo: readonly |
||||
|
openerp: readonly |
||||
|
Promise: readonly |
||||
|
|
||||
|
# Styling is handled by Prettier, so we only need to enable AST rules; |
||||
|
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890 |
||||
|
rules: |
||||
|
accessor-pairs: warn |
||||
|
array-callback-return: warn |
||||
|
callback-return: warn |
||||
|
capitalized-comments: |
||||
|
- warn |
||||
|
- always |
||||
|
- ignoreConsecutiveComments: true |
||||
|
ignoreInlineComments: true |
||||
|
complexity: |
||||
|
- warn |
||||
|
- 15 |
||||
|
constructor-super: warn |
||||
|
dot-notation: warn |
||||
|
eqeqeq: warn |
||||
|
global-require: warn |
||||
|
handle-callback-err: warn |
||||
|
id-blacklist: warn |
||||
|
id-match: warn |
||||
|
init-declarations: error |
||||
|
max-depth: warn |
||||
|
max-nested-callbacks: warn |
||||
|
max-statements-per-line: warn |
||||
|
no-alert: warn |
||||
|
no-array-constructor: warn |
||||
|
no-caller: warn |
||||
|
no-case-declarations: warn |
||||
|
no-class-assign: warn |
||||
|
no-cond-assign: error |
||||
|
no-const-assign: error |
||||
|
no-constant-condition: warn |
||||
|
no-control-regex: warn |
||||
|
no-debugger: error |
||||
|
no-delete-var: warn |
||||
|
no-div-regex: warn |
||||
|
no-dupe-args: error |
||||
|
no-dupe-class-members: error |
||||
|
no-dupe-keys: error |
||||
|
no-duplicate-case: error |
||||
|
no-duplicate-imports: error |
||||
|
no-else-return: warn |
||||
|
no-empty-character-class: warn |
||||
|
no-empty-function: error |
||||
|
no-empty-pattern: error |
||||
|
no-empty: warn |
||||
|
no-eq-null: error |
||||
|
no-eval: error |
||||
|
no-ex-assign: error |
||||
|
no-extend-native: warn |
||||
|
no-extra-bind: warn |
||||
|
no-extra-boolean-cast: warn |
||||
|
no-extra-label: warn |
||||
|
no-fallthrough: warn |
||||
|
no-func-assign: error |
||||
|
no-global-assign: error |
||||
|
no-implicit-coercion: |
||||
|
- warn |
||||
|
- allow: ["~"] |
||||
|
no-implicit-globals: warn |
||||
|
no-implied-eval: warn |
||||
|
no-inline-comments: warn |
||||
|
no-inner-declarations: warn |
||||
|
no-invalid-regexp: warn |
||||
|
no-irregular-whitespace: warn |
||||
|
no-iterator: warn |
||||
|
no-label-var: warn |
||||
|
no-labels: warn |
||||
|
no-lone-blocks: warn |
||||
|
no-lonely-if: error |
||||
|
no-mixed-requires: error |
||||
|
no-multi-str: warn |
||||
|
no-native-reassign: error |
||||
|
no-negated-condition: warn |
||||
|
no-negated-in-lhs: error |
||||
|
no-new-func: warn |
||||
|
no-new-object: warn |
||||
|
no-new-require: warn |
||||
|
no-new-symbol: warn |
||||
|
no-new-wrappers: warn |
||||
|
no-new: warn |
||||
|
no-obj-calls: warn |
||||
|
no-octal-escape: warn |
||||
|
no-octal: warn |
||||
|
no-param-reassign: warn |
||||
|
no-path-concat: warn |
||||
|
no-process-env: warn |
||||
|
no-process-exit: warn |
||||
|
no-proto: warn |
||||
|
no-prototype-builtins: warn |
||||
|
no-redeclare: warn |
||||
|
no-regex-spaces: warn |
||||
|
no-restricted-globals: warn |
||||
|
no-restricted-imports: warn |
||||
|
no-restricted-modules: warn |
||||
|
no-restricted-syntax: warn |
||||
|
no-return-assign: error |
||||
|
no-script-url: warn |
||||
|
no-self-assign: warn |
||||
|
no-self-compare: warn |
||||
|
no-sequences: warn |
||||
|
no-shadow-restricted-names: warn |
||||
|
no-shadow: warn |
||||
|
no-sparse-arrays: warn |
||||
|
no-sync: warn |
||||
|
no-this-before-super: warn |
||||
|
no-throw-literal: warn |
||||
|
no-undef-init: warn |
||||
|
no-undef: error |
||||
|
no-unmodified-loop-condition: warn |
||||
|
no-unneeded-ternary: error |
||||
|
no-unreachable: error |
||||
|
no-unsafe-finally: error |
||||
|
no-unused-expressions: error |
||||
|
no-unused-labels: error |
||||
|
no-unused-vars: error |
||||
|
no-use-before-define: error |
||||
|
no-useless-call: warn |
||||
|
no-useless-computed-key: warn |
||||
|
no-useless-concat: warn |
||||
|
no-useless-constructor: warn |
||||
|
no-useless-escape: warn |
||||
|
no-useless-rename: warn |
||||
|
no-void: warn |
||||
|
no-with: warn |
||||
|
operator-assignment: [error, always] |
||||
|
prefer-const: warn |
||||
|
radix: warn |
||||
|
require-yield: warn |
||||
|
sort-imports: warn |
||||
|
spaced-comment: [error, always] |
||||
|
strict: [error, function] |
||||
|
use-isnan: error |
||||
|
valid-jsdoc: |
||||
|
- warn |
||||
|
- prefer: |
||||
|
arg: param |
||||
|
argument: param |
||||
|
augments: extends |
||||
|
constructor: class |
||||
|
exception: throws |
||||
|
func: function |
||||
|
method: function |
||||
|
prop: property |
||||
|
return: returns |
||||
|
virtual: abstract |
||||
|
yield: yields |
||||
|
preferType: |
||||
|
array: Array |
||||
|
bool: Boolean |
||||
|
boolean: Boolean |
||||
|
number: Number |
||||
|
object: Object |
||||
|
str: String |
||||
|
string: String |
||||
|
requireParamDescription: false |
||||
|
requireReturn: false |
||||
|
requireReturnDescription: false |
||||
|
requireReturnType: false |
||||
|
valid-typeof: warn |
||||
|
yoda: warn |
@ -0,0 +1,10 @@ |
|||||
|
[flake8] |
||||
|
max-line-length = 80 |
||||
|
max-complexity = 16 |
||||
|
# B = bugbear |
||||
|
# B9 = bugbear opinionated (incl line length) |
||||
|
select = C,E,F,W,B,B9 |
||||
|
# E203: whitespace before ':' (black behaviour) |
||||
|
# E501: flake8 line length (covered by bugbear B950) |
||||
|
# W503: line break before binary operator (black behaviour) |
||||
|
ignore = E203,E501,W503 |
@ -0,0 +1,12 @@ |
|||||
|
[settings] |
||||
|
; see https://github.com/psf/black |
||||
|
multi_line_output=3 |
||||
|
include_trailing_comma=True |
||||
|
force_grid_wrap=0 |
||||
|
combine_as_imports=True |
||||
|
use_parentheses=True |
||||
|
line_length=88 |
||||
|
known_odoo=odoo |
||||
|
known_odoo_addons=odoo.addons |
||||
|
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER |
||||
|
default_section=THIRDPARTY |
@ -0,0 +1,103 @@ |
|||||
|
exclude: | |
||||
|
(?x) |
||||
|
# Files and folders generated by bots, to avoid loops |
||||
|
^setup/|/static/description/index\.html$| |
||||
|
# Maybe reactivate this when all README files include prettier ignore tags? |
||||
|
^README\.md$| |
||||
|
# Library files can have extraneous formatting (even minimized) |
||||
|
/static/(src/)?lib/| |
||||
|
# Repos using Sphinx to generate docs don't need prettying |
||||
|
^docs/_templates/.*\.html$| |
||||
|
# You don't usually want a bot to modify your legal texts |
||||
|
(LICENSE.*|COPYING.*) |
||||
|
default_language_version: |
||||
|
python: python3 |
||||
|
node: "14.13.0" |
||||
|
repos: |
||||
|
- repo: https://github.com/psf/black |
||||
|
rev: 19.10b0 |
||||
|
hooks: |
||||
|
- id: black |
||||
|
- repo: https://github.com/prettier/pre-commit |
||||
|
rev: "v1.19.1" |
||||
|
hooks: |
||||
|
- id: prettier |
||||
|
# TODO Avoid awebdeveloper/pre-commit-prettier if possible |
||||
|
# HACK https://github.com/prettier/prettier/issues/7407 |
||||
|
- repo: https://github.com/awebdeveloper/pre-commit-prettier |
||||
|
rev: v0.0.1 |
||||
|
hooks: |
||||
|
- id: prettier |
||||
|
name: prettier xml plugin |
||||
|
additional_dependencies: |
||||
|
- "prettier@1.19.1" |
||||
|
- "@prettier/plugin-xml@0.7.2" |
||||
|
files: \.xml$ |
||||
|
- repo: https://github.com/pre-commit/mirrors-eslint |
||||
|
rev: v6.8.0 |
||||
|
hooks: |
||||
|
- id: eslint |
||||
|
verbose: true |
||||
|
args: |
||||
|
- --color |
||||
|
- --fix |
||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks |
||||
|
rev: v2.4.0 |
||||
|
hooks: |
||||
|
- id: trailing-whitespace |
||||
|
# exclude autogenerated files |
||||
|
exclude: /README\.rst$|\.pot?$ |
||||
|
- id: end-of-file-fixer |
||||
|
# exclude autogenerated files |
||||
|
exclude: /README\.rst$|\.pot?$ |
||||
|
- id: debug-statements |
||||
|
- id: fix-encoding-pragma |
||||
|
args: ["--remove"] |
||||
|
- id: check-case-conflict |
||||
|
- id: check-docstring-first |
||||
|
- id: check-executables-have-shebangs |
||||
|
- id: check-merge-conflict |
||||
|
# exclude files where underlines are not distinguishable from merge conflicts |
||||
|
exclude: /README\.rst$|^docs/.*\.rst$ |
||||
|
- id: check-symlinks |
||||
|
- id: check-xml |
||||
|
- id: mixed-line-ending |
||||
|
args: ["--fix=lf"] |
||||
|
- repo: https://gitlab.com/pycqa/flake8 |
||||
|
rev: 3.7.9 |
||||
|
hooks: |
||||
|
- id: flake8 |
||||
|
name: flake8 except __init__.py |
||||
|
exclude: /__init__\.py$ |
||||
|
additional_dependencies: ["flake8-bugbear==19.8.0"] |
||||
|
- id: flake8 |
||||
|
name: flake8 only __init__.py |
||||
|
args: ["--extend-ignore=F401"] # ignore unused imports in __init__.py |
||||
|
files: /__init__\.py$ |
||||
|
additional_dependencies: ["flake8-bugbear==19.8.0"] |
||||
|
- repo: https://github.com/pre-commit/mirrors-pylint |
||||
|
rev: v2.5.3 |
||||
|
hooks: |
||||
|
- id: pylint |
||||
|
name: pylint with optional checks |
||||
|
args: ["--rcfile=.pylintrc", "--exit-zero"] |
||||
|
verbose: true |
||||
|
additional_dependencies: ["pylint-odoo==3.5.0"] |
||||
|
- id: pylint |
||||
|
name: pylint with mandatory checks |
||||
|
args: ["--rcfile=.pylintrc-mandatory"] |
||||
|
additional_dependencies: ["pylint-odoo==3.5.0"] |
||||
|
- repo: https://github.com/asottile/pyupgrade |
||||
|
rev: v1.26.2 |
||||
|
hooks: |
||||
|
- id: pyupgrade |
||||
|
- repo: https://github.com/pre-commit/mirrors-isort |
||||
|
rev: v4.3.21 |
||||
|
hooks: |
||||
|
- id: isort |
||||
|
name: isort except __init__.py |
||||
|
exclude: /__init__\.py$ |
||||
|
- repo: https://github.com/acsone/setuptools-odoo |
||||
|
rev: 2.5.2 |
||||
|
hooks: |
||||
|
- id: setuptools-odoo-make-default |
@ -0,0 +1,8 @@ |
|||||
|
# Defaults for all prettier-supported languages. |
||||
|
# Prettier will complete this with settings from .editorconfig file. |
||||
|
bracketSpacing: false |
||||
|
printWidth: 88 |
||||
|
proseWrap: always |
||||
|
semi: true |
||||
|
trailingComma: "es5" |
||||
|
xmlWhitespaceSensitivity: "ignore" |
@ -0,0 +1,88 @@ |
|||||
|
[MASTER] |
||||
|
load-plugins=pylint_odoo |
||||
|
score=n |
||||
|
|
||||
|
[ODOOLINT] |
||||
|
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" |
||||
|
manifest_required_authors=Odoo Community Association (OCA) |
||||
|
manifest_required_keys=license |
||||
|
manifest_deprecated_keys=description,active |
||||
|
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 |
||||
|
valid_odoo_versions=13.0 |
||||
|
|
||||
|
[MESSAGES CONTROL] |
||||
|
disable=all |
||||
|
|
||||
|
# This .pylintrc contains optional AND mandatory checks and is meant to be |
||||
|
# loaded in an IDE to have it check everything, in the hope this will make |
||||
|
# optional checks more visible to contributors who otherwise never look at a |
||||
|
# green travis to see optional checks that failed. |
||||
|
# .pylintrc-mandatory containing only mandatory checks is used the pre-commit |
||||
|
# config as a blocking check. |
||||
|
|
||||
|
enable=anomalous-backslash-in-string, |
||||
|
api-one-deprecated, |
||||
|
api-one-multi-together, |
||||
|
assignment-from-none, |
||||
|
attribute-deprecated, |
||||
|
class-camelcase, |
||||
|
dangerous-default-value, |
||||
|
dangerous-view-replace-wo-priority, |
||||
|
development-status-allowed, |
||||
|
duplicate-id-csv, |
||||
|
duplicate-key, |
||||
|
duplicate-xml-fields, |
||||
|
duplicate-xml-record-id, |
||||
|
eval-referenced, |
||||
|
eval-used, |
||||
|
incoherent-interpreter-exec-perm, |
||||
|
license-allowed, |
||||
|
manifest-author-string, |
||||
|
manifest-deprecated-key, |
||||
|
manifest-required-author, |
||||
|
manifest-required-key, |
||||
|
manifest-version-format, |
||||
|
method-compute, |
||||
|
method-inverse, |
||||
|
method-required-super, |
||||
|
method-search, |
||||
|
missing-import-error, |
||||
|
missing-manifest-dependency, |
||||
|
openerp-exception-warning, |
||||
|
pointless-statement, |
||||
|
pointless-string-statement, |
||||
|
print-used, |
||||
|
redundant-keyword-arg, |
||||
|
redundant-modulename-xml, |
||||
|
reimported, |
||||
|
relative-import, |
||||
|
return-in-init, |
||||
|
rst-syntax-error, |
||||
|
sql-injection, |
||||
|
too-few-format-args, |
||||
|
translation-field, |
||||
|
translation-required, |
||||
|
unreachable, |
||||
|
use-vim-comment, |
||||
|
wrong-tabs-instead-of-spaces, |
||||
|
xml-syntax-error, |
||||
|
# messages that do not cause the lint step to fail |
||||
|
consider-merging-classes-inherited, |
||||
|
create-user-wo-reset-password, |
||||
|
dangerous-filter-wo-user, |
||||
|
deprecated-module, |
||||
|
file-not-used, |
||||
|
invalid-commit, |
||||
|
missing-newline-extrafiles, |
||||
|
missing-readme, |
||||
|
no-utf8-coding-comment, |
||||
|
odoo-addons-relative-import, |
||||
|
old-api7-method-defined, |
||||
|
redefined-builtin, |
||||
|
too-complex, |
||||
|
unnecessary-utf8-coding-comment |
||||
|
|
||||
|
[REPORTS] |
||||
|
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} |
||||
|
output-format=colorized |
||||
|
reports=no |
@ -0,0 +1,66 @@ |
|||||
|
[MASTER] |
||||
|
load-plugins=pylint_odoo |
||||
|
score=n |
||||
|
|
||||
|
[ODOOLINT] |
||||
|
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" |
||||
|
manifest_required_authors=Odoo Community Association (OCA) |
||||
|
manifest_required_keys=license |
||||
|
manifest_deprecated_keys=description,active |
||||
|
license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 |
||||
|
valid_odoo_versions=13.0 |
||||
|
|
||||
|
[MESSAGES CONTROL] |
||||
|
disable=all |
||||
|
|
||||
|
enable=anomalous-backslash-in-string, |
||||
|
api-one-deprecated, |
||||
|
api-one-multi-together, |
||||
|
assignment-from-none, |
||||
|
attribute-deprecated, |
||||
|
class-camelcase, |
||||
|
dangerous-default-value, |
||||
|
dangerous-view-replace-wo-priority, |
||||
|
development-status-allowed, |
||||
|
duplicate-id-csv, |
||||
|
duplicate-key, |
||||
|
duplicate-xml-fields, |
||||
|
duplicate-xml-record-id, |
||||
|
eval-referenced, |
||||
|
eval-used, |
||||
|
incoherent-interpreter-exec-perm, |
||||
|
license-allowed, |
||||
|
manifest-author-string, |
||||
|
manifest-deprecated-key, |
||||
|
manifest-required-author, |
||||
|
manifest-required-key, |
||||
|
manifest-version-format, |
||||
|
method-compute, |
||||
|
method-inverse, |
||||
|
method-required-super, |
||||
|
method-search, |
||||
|
missing-import-error, |
||||
|
missing-manifest-dependency, |
||||
|
openerp-exception-warning, |
||||
|
pointless-statement, |
||||
|
pointless-string-statement, |
||||
|
print-used, |
||||
|
redundant-keyword-arg, |
||||
|
redundant-modulename-xml, |
||||
|
reimported, |
||||
|
relative-import, |
||||
|
return-in-init, |
||||
|
rst-syntax-error, |
||||
|
sql-injection, |
||||
|
too-few-format-args, |
||||
|
translation-field, |
||||
|
translation-required, |
||||
|
unreachable, |
||||
|
use-vim-comment, |
||||
|
wrong-tabs-instead-of-spaces, |
||||
|
xml-syntax-error |
||||
|
|
||||
|
[REPORTS] |
||||
|
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg} |
||||
|
output-format=colorized |
||||
|
reports=no |
@ -1,6 +1,7 @@ |
|||||
# OCA Guidelines |
# OCA Guidelines |
||||
|
|
||||
Please follow the official guide from the [OCA Guidelines page](https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md). |
|
||||
|
Please follow the official guide from the |
||||
|
[OCA Guidelines page](https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md). |
||||
|
|
||||
## Project Specific Guidelines |
## Project Specific Guidelines |
||||
|
|
||||
|
@ -1,89 +0,0 @@ |
|||||
=================== |
|
||||
Contact Search Form |
|
||||
=================== |
|
||||
|
|
||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
||||
!! This file is generated by oca-gen-addon-readme !! |
|
||||
!! changes will be overwritten. !! |
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
||||
|
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png |
|
||||
:target: https://odoo-community.org/page/development-status |
|
||||
:alt: Beta |
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png |
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|
||||
:alt: License: AGPL-3 |
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdata--protection-lightgray.png?logo=github |
|
||||
:target: https://github.com/OCA/data-protection/tree/11.0/contact_search_form |
|
||||
:alt: OCA/data-protection |
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
|
||||
:target: https://translation.odoo-community.org/projects/data-protection-11-0/data-protection-11-0-contact_search_form |
|
||||
:alt: Translate me on Weblate |
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png |
|
||||
:target: https://runbot.odoo-community.org/runbot/263/11.0 |
|
||||
:alt: Try me on Runbot |
|
||||
|
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5| |
|
||||
|
|
||||
View containing a search function for Data Protection Officers (DPO) to look up Customer Data. |
|
||||
All available Odoo models can be included in the search query looking for a specified string. |
|
||||
|
|
||||
**Table of contents** |
|
||||
|
|
||||
.. contents:: |
|
||||
:local: |
|
||||
|
|
||||
Configuration |
|
||||
============= |
|
||||
|
|
||||
To access contact search view in contacts view, the user has to activate the 'Data Protection Officer' checkbox |
|
||||
in User -> Technical Settings. |
|
||||
After that a new menu item 'Contact Search' will appear in the Contacts App. |
|
||||
|
|
||||
Usage |
|
||||
===== |
|
||||
|
|
||||
The new menu Contact Search is located in the Contacts App |
|
||||
|
|
||||
When accessing the Contact Search form a new query can be defined by |
|
||||
clicking on the Create button. |
|
||||
To perform a search the search string is required and the Odoo models that |
|
||||
should be searched have to be selected in the dropdown 'Search in model'. |
|
||||
|
|
||||
The search results are stored and can be accessed at a later time from the |
|
||||
tree view of 'Contact Search'. |
|
||||
|
|
||||
Bug Tracker |
|
||||
=========== |
|
||||
|
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/data-protection/issues>`_. |
|
||||
In case of trouble, please check there if your issue has already been reported. |
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed |
|
||||
`feedback <https://github.com/OCA/data-protection/issues/new?body=module:%20contact_search_form%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
|
||||
|
|
||||
Do not contact contributors directly about support or help with technical issues. |
|
||||
|
|
||||
Credits |
|
||||
======= |
|
||||
|
|
||||
Authors |
|
||||
~~~~~~~ |
|
||||
|
|
||||
* IT IS AG |
|
||||
|
|
||||
Maintainers |
|
||||
~~~~~~~~~~~ |
|
||||
|
|
||||
This module is maintained by the OCA. |
|
||||
|
|
||||
.. image:: https://odoo-community.org/logo.png |
|
||||
:alt: Odoo Community Association |
|
||||
:target: https://odoo-community.org |
|
||||
|
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|
||||
mission is to support the collaborative development of Odoo features and |
|
||||
promote its widespread use. |
|
||||
|
|
||||
This module is part of the `OCA/data-protection <https://github.com/OCA/data-protection/tree/11.0/contact_search_form>`_ project on GitHub. |
|
||||
|
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
|
@ -1,3 +0,0 @@ |
|||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
||||
|
|
||||
from . import models |
|
@ -1,33 +0,0 @@ |
|||||
##################################################################### |
|
||||
# |
|
||||
# IT IS AG, software solutions: http://www.itis.de |
|
||||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html |
|
||||
# |
|
||||
##################################################################### |
|
||||
|
|
||||
{ |
|
||||
'name': 'Contact Search Form', |
|
||||
|
|
||||
'summary': "Multiple models can be searched for specified string by DPO", |
|
||||
|
|
||||
'author': 'IT IS AG, Odoo Community Association (OCA)', |
|
||||
'website': 'https://github.com/OCA/data-protection', |
|
||||
|
|
||||
# Categories can be used to filter modules in modules listing |
|
||||
# Check https://github.com/odoo/odoo/blob/master/ |
|
||||
# openerp/addons/base/module/module_data.xml |
|
||||
# for the full list |
|
||||
'version': '11.0.1.0.0', |
|
||||
'license': 'AGPL-3', |
|
||||
'category': 'Contacts', |
|
||||
'depends': ['base', |
|
||||
'contacts', |
|
||||
], |
|
||||
|
|
||||
'data': [ |
|
||||
'security/gdpr_security.xml', |
|
||||
'security/ir.model.access.csv', |
|
||||
'views/contact_search.xml', |
|
||||
], |
|
||||
|
|
||||
} |
|
@ -1,156 +0,0 @@ |
|||||
# Translation of Odoo Server. |
|
||||
# This file contains the translation of the following modules: |
|
||||
# * contact_search_form |
|
||||
# |
|
||||
msgid "" |
|
||||
msgstr "" |
|
||||
"Project-Id-Version: Odoo Server 11.0\n" |
|
||||
"Report-Msgid-Bugs-To: \n" |
|
||||
"Last-Translator: <>\n" |
|
||||
"Language-Team: \n" |
|
||||
"MIME-Version: 1.0\n" |
|
||||
"Content-Type: text/plain; charset=UTF-8\n" |
|
||||
"Content-Transfer-Encoding: \n" |
|
||||
"Plural-Forms: \n" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info_base |
|
||||
msgid "Contact Search" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_uid |
|
||||
msgid "Created by" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_date |
|
||||
msgid "Created on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.actions.act_window,name:contact_search_form.action_dpo_view_itis |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Customer Info" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:res.groups,name:contact_search_form.group_dpo |
|
||||
msgid "Data Protection Officer" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_display_name |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_display_name |
|
||||
msgid "Display Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_field_list |
|
||||
msgid "Fields Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_model_id |
|
||||
msgid "Found in Model" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: code:addons/contact_search_form/models/contact_search.py:20 |
|
||||
#, python-format |
|
||||
msgid "Found record" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_id |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_id |
|
||||
msgid "ID" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view___last_update |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line___last_update |
|
||||
msgid "Last Modified on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_uid |
|
||||
msgid "Last Updated by" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_date |
|
||||
msgid "Last Updated on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_name |
|
||||
msgid "Model Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_id |
|
||||
msgid "Record ID" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_name |
|
||||
msgid "Record Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "SEARCH" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.dpo_view_tree |
|
||||
msgid "Search Contact" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_search_lines |
|
||||
msgid "Search Result" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "Search Results" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_name |
|
||||
msgid "Search Term" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_search_id |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Search Terms" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_model_ids |
|
||||
msgid "Search in Model" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "VIEW RECORD" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_dpo_view |
|
||||
msgid "dpo.view" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_search_line |
|
||||
msgid "search.line" |
|
||||
msgstr "" |
|
||||
|
|
@ -1,161 +0,0 @@ |
|||||
# Translation of Odoo Server. |
|
||||
# This file contains the translation of the following modules: |
|
||||
# * contact_search_form |
|
||||
# |
|
||||
msgid "" |
|
||||
msgstr "" |
|
||||
"Project-Id-Version: Odoo Server 11.0\n" |
|
||||
"Report-Msgid-Bugs-To: \n" |
|
||||
"POT-Creation-Date: 2018-07-02 12:16+0000\n" |
|
||||
"PO-Revision-Date: 2018-07-02 14:16+0100\n" |
|
||||
"Last-Translator: <>\n" |
|
||||
"Language-Team: \n" |
|
||||
"Language: de_DE\n" |
|
||||
"MIME-Version: 1.0\n" |
|
||||
"Content-Type: text/plain; charset=UTF-8\n" |
|
||||
"Content-Transfer-Encoding: 8bit\n" |
|
||||
"X-Generator: Poedit 1.5.4\n" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info_base |
|
||||
msgid "Contact Search" |
|
||||
msgstr "Kontakt Suche" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_uid |
|
||||
msgid "Created by" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_date |
|
||||
msgid "Created on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.actions.act_window,name:contact_search_form.action_dpo_view_itis |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Customer Info" |
|
||||
msgstr "Kundeninformation" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:res.groups,name:contact_search_form.group_dpo |
|
||||
msgid "Data Protection Officer" |
|
||||
msgstr "Data Protection Officer" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_display_name |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_display_name |
|
||||
msgid "Display Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_field_list |
|
||||
msgid "Fields Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_model_id |
|
||||
msgid "Found in Model" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: code:addons/contact_search_form/models/contact_search.py:20 |
|
||||
#, python-format |
|
||||
msgid "Found record" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_id |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_id |
|
||||
msgid "ID" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view___last_update |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line___last_update |
|
||||
msgid "Last Modified on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_uid |
|
||||
msgid "Last Updated by" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_date |
|
||||
msgid "Last Updated on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_name |
|
||||
msgid "Model Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_id |
|
||||
msgid "Record ID" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_name |
|
||||
msgid "Record Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "SEARCH" |
|
||||
msgstr "Suche" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.dpo_view_tree |
|
||||
msgid "Search Contact" |
|
||||
msgstr "Kontakt Suchen" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_search_lines |
|
||||
#, fuzzy |
|
||||
msgid "Search Result" |
|
||||
msgstr "Suchergebnisse" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "Search Results" |
|
||||
msgstr "Suchergebnisse" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_name |
|
||||
#, fuzzy |
|
||||
msgid "Search Term" |
|
||||
msgstr "Suchbegriffe" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_search_id |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Search Terms" |
|
||||
msgstr "Suchbegriffe" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_model_ids |
|
||||
#, fuzzy |
|
||||
msgid "Search in Model" |
|
||||
msgstr "Suchergebnisse" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "VIEW RECORD" |
|
||||
msgstr "VIEW RECORD" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_dpo_view |
|
||||
msgid "dpo.view" |
|
||||
msgstr "dpo.view" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_search_line |
|
||||
msgid "search.line" |
|
||||
msgstr "search.line" |
|
@ -1,161 +0,0 @@ |
|||||
# Translation of Odoo Server. |
|
||||
# This file contains the translation of the following modules: |
|
||||
# * contact_search_form |
|
||||
# |
|
||||
msgid "" |
|
||||
msgstr "" |
|
||||
"Project-Id-Version: Odoo Server 11.0\n" |
|
||||
"Report-Msgid-Bugs-To: \n" |
|
||||
"POT-Creation-Date: 2018-07-02 12:15+0000\n" |
|
||||
"PO-Revision-Date: 2018-07-02 12:15+0000\n" |
|
||||
"Last-Translator: <>\n" |
|
||||
"Language-Team: \n" |
|
||||
"Language: \n" |
|
||||
"MIME-Version: 1.0\n" |
|
||||
"Content-Type: text/plain; charset=UTF-8\n" |
|
||||
"Content-Transfer-Encoding: \n" |
|
||||
"Plural-Forms: \n" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info_base |
|
||||
msgid "Contact Search" |
|
||||
msgstr "Contact Search" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_uid |
|
||||
msgid "Created by" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_date |
|
||||
msgid "Created on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.actions.act_window,name:contact_search_form.action_dpo_view_itis |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Customer Info" |
|
||||
msgstr "Customer Info" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:res.groups,name:contact_search_form.group_dpo |
|
||||
msgid "Data Protection Officer" |
|
||||
msgstr "Data Protection Officer" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_display_name |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_display_name |
|
||||
msgid "Display Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_field_list |
|
||||
msgid "Fields Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_model_id |
|
||||
msgid "Found in Model" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: code:addons/contact_search_form/models/contact_search.py:20 |
|
||||
#, python-format |
|
||||
msgid "Found record" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_id |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_id |
|
||||
msgid "ID" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view___last_update |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line___last_update |
|
||||
msgid "Last Modified on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_uid |
|
||||
msgid "Last Updated by" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_date |
|
||||
msgid "Last Updated on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_name |
|
||||
msgid "Model Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_id |
|
||||
msgid "Record ID" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_name |
|
||||
msgid "Record Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "SEARCH" |
|
||||
msgstr "SEARCH" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.dpo_view_tree |
|
||||
msgid "Search Contact" |
|
||||
msgstr "Search Contact" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_search_lines |
|
||||
#, fuzzy |
|
||||
msgid "Search Result" |
|
||||
msgstr "Search Results" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "Search Results" |
|
||||
msgstr "Search Results" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_name |
|
||||
#, fuzzy |
|
||||
msgid "Search Term" |
|
||||
msgstr "Search Terms" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_search_id |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Search Terms" |
|
||||
msgstr "Search Terms" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_model_ids |
|
||||
#, fuzzy |
|
||||
msgid "Search in Model" |
|
||||
msgstr "Search Results" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "VIEW RECORD" |
|
||||
msgstr "VIEW RECORD" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_dpo_view |
|
||||
msgid "dpo.view" |
|
||||
msgstr "dpo.view" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_search_line |
|
||||
msgid "search.line" |
|
||||
msgstr "search.line" |
|
@ -1,158 +0,0 @@ |
|||||
# Translation of Odoo Server. |
|
||||
# This file contains the translation of the following modules: |
|
||||
# * contact_search_form |
|
||||
# |
|
||||
msgid "" |
|
||||
msgstr "" |
|
||||
"Project-Id-Version: Odoo Server 11.0\n" |
|
||||
"Report-Msgid-Bugs-To: \n" |
|
||||
"PO-Revision-Date: 2019-01-27 16:03+0000\n" |
|
||||
"Last-Translator: Nicolas JEUDY <njeudy@panda-chi.io>\n" |
|
||||
"Language-Team: none\n" |
|
||||
"Language: fr\n" |
|
||||
"MIME-Version: 1.0\n" |
|
||||
"Content-Type: text/plain; charset=UTF-8\n" |
|
||||
"Content-Transfer-Encoding: \n" |
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
|
||||
"X-Generator: Weblate 3.4\n" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info_base |
|
||||
msgid "Contact Search" |
|
||||
msgstr "Rechercher un contact" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_uid |
|
||||
msgid "Created by" |
|
||||
msgstr "Créé par" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_date |
|
||||
msgid "Created on" |
|
||||
msgstr "Crée le" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.actions.act_window,name:contact_search_form.action_dpo_view_itis |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Customer Info" |
|
||||
msgstr "Infos client" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:res.groups,name:contact_search_form.group_dpo |
|
||||
msgid "Data Protection Officer" |
|
||||
msgstr "Délégué à la protection des données" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_display_name |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_display_name |
|
||||
msgid "Display Name" |
|
||||
msgstr "Nom d'affichage" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_field_list |
|
||||
msgid "Fields Name" |
|
||||
msgstr "Nom des champs" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_model_id |
|
||||
msgid "Found in Model" |
|
||||
msgstr "Trouvé dans le modèle" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: code:addons/contact_search_form/models/contact_search.py:20 |
|
||||
#, python-format |
|
||||
msgid "Found record" |
|
||||
msgstr "Enregistrement trouvé" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_id |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_id |
|
||||
msgid "ID" |
|
||||
msgstr "ID" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view___last_update |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line___last_update |
|
||||
msgid "Last Modified on" |
|
||||
msgstr "Modifié le" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_uid |
|
||||
msgid "Last Updated by" |
|
||||
msgstr "Mis à jour par" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_date |
|
||||
msgid "Last Updated on" |
|
||||
msgstr "Mis à jour le" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_name |
|
||||
msgid "Model Name" |
|
||||
msgstr "Nom du Modèle" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_id |
|
||||
msgid "Record ID" |
|
||||
msgstr "ID de l'enregistrement" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_name |
|
||||
msgid "Record Name" |
|
||||
msgstr "Nom de l'enregistrement" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "SEARCH" |
|
||||
msgstr "RECHERCHER" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.dpo_view_tree |
|
||||
msgid "Search Contact" |
|
||||
msgstr "Rechercher un Contact" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_search_lines |
|
||||
msgid "Search Result" |
|
||||
msgstr "Résultat de la recherche" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "Search Results" |
|
||||
msgstr "Résultats de la recherche" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_name |
|
||||
msgid "Search Term" |
|
||||
msgstr "Critère de recherche" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_search_id |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Search Terms" |
|
||||
msgstr "Critères de recherche" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_model_ids |
|
||||
msgid "Search in Model" |
|
||||
msgstr "Rechercher dans un Modèle" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "VIEW RECORD" |
|
||||
msgstr "Voir l'enregistrement" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_dpo_view |
|
||||
msgid "dpo.view" |
|
||||
msgstr "dpo.view" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_search_line |
|
||||
msgid "search.line" |
|
||||
msgstr "search.line" |
|
@ -1,158 +0,0 @@ |
|||||
# Translation of Odoo Server. |
|
||||
# This file contains the translation of the following modules: |
|
||||
# * contact_search_form |
|
||||
# |
|
||||
msgid "" |
|
||||
msgstr "" |
|
||||
"Project-Id-Version: Odoo Server 11.0\n" |
|
||||
"Report-Msgid-Bugs-To: \n" |
|
||||
"PO-Revision-Date: 2019-03-20 12:14+0000\n" |
|
||||
"Last-Translator: Sergio Zanchetta <primes2h@gmail.com>\n" |
|
||||
"Language-Team: none\n" |
|
||||
"Language: it\n" |
|
||||
"MIME-Version: 1.0\n" |
|
||||
"Content-Type: text/plain; charset=UTF-8\n" |
|
||||
"Content-Transfer-Encoding: \n" |
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n" |
|
||||
"X-Generator: Weblate 3.5.1\n" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info |
|
||||
#: model:ir.ui.menu,name:contact_search_form.menu_customer_info_base |
|
||||
msgid "Contact Search" |
|
||||
msgstr "Ricerca contatto" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_uid |
|
||||
msgid "Created by" |
|
||||
msgstr "Creato da" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_create_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_create_date |
|
||||
msgid "Created on" |
|
||||
msgstr "Creato il" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.actions.act_window,name:contact_search_form.action_dpo_view_itis |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Customer Info" |
|
||||
msgstr "Informazioni cliente" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:res.groups,name:contact_search_form.group_dpo |
|
||||
msgid "Data Protection Officer" |
|
||||
msgstr "Responsabile protezione dati (DPO)" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_display_name |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_display_name |
|
||||
msgid "Display Name" |
|
||||
msgstr "Nome visualizzato" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_field_list |
|
||||
msgid "Fields Name" |
|
||||
msgstr "Nome campi" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_model_id |
|
||||
msgid "Found in Model" |
|
||||
msgstr "Trovato nel modello" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: code:addons/contact_search_form/models/contact_search.py:20 |
|
||||
#, python-format |
|
||||
msgid "Found record" |
|
||||
msgstr "Trovato record" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_id |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_id |
|
||||
msgid "ID" |
|
||||
msgstr "ID" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view___last_update |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line___last_update |
|
||||
msgid "Last Modified on" |
|
||||
msgstr "Ultima modifica il" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_uid |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_uid |
|
||||
msgid "Last Updated by" |
|
||||
msgstr "Ultimo aggiornamento di" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_write_date |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_write_date |
|
||||
msgid "Last Updated on" |
|
||||
msgstr "Ultimo aggiornamento il" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_name |
|
||||
msgid "Model Name" |
|
||||
msgstr "Nome modello" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_id |
|
||||
msgid "Record ID" |
|
||||
msgstr "ID record" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_record_name |
|
||||
msgid "Record Name" |
|
||||
msgstr "Nome record" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "SEARCH" |
|
||||
msgstr "RICERCA" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.dpo_view_tree |
|
||||
msgid "Search Contact" |
|
||||
msgstr "Ricerca contatto" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_search_lines |
|
||||
msgid "Search Result" |
|
||||
msgstr "Risultato ricerca" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "Search Results" |
|
||||
msgstr "Risultati ricerca" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_name |
|
||||
msgid "Search Term" |
|
||||
msgstr "Termine di ricerca" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_search_line_search_id |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.view_dpo_form_view_itis |
|
||||
msgid "Search Terms" |
|
||||
msgstr "Termini di ricerca" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model.fields,field_description:contact_search_form.field_dpo_view_model_ids |
|
||||
msgid "Search in Model" |
|
||||
msgstr "Ricerca nel modello" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.ui.view,arch_db:contact_search_form.search_line_tree_view_itis |
|
||||
msgid "VIEW RECORD" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_dpo_view |
|
||||
msgid "dpo.view" |
|
||||
msgstr "dpo.view" |
|
||||
|
|
||||
#. module: contact_search_form |
|
||||
#: model:ir.model,name:contact_search_form.model_search_line |
|
||||
msgid "search.line" |
|
||||
msgstr "search.line" |
|
@ -1,3 +0,0 @@ |
|||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
||||
|
|
||||
from . import contact_search |
|
@ -1,84 +0,0 @@ |
|||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
||||
|
|
||||
from odoo import api, fields, models, _ |
|
||||
|
|
||||
|
|
||||
class SearchLine(models.Model): |
|
||||
_name = "search.line" |
|
||||
|
|
||||
name = fields.Char(string="Model Name") |
|
||||
field_list = fields.Char(string="Fields Name") |
|
||||
model_id = fields.Many2one('ir.model', string="Found in Model") |
|
||||
record_id = fields.Integer(string="Record ID") |
|
||||
search_id = fields.Many2one("dpo.view", string="Search Terms") |
|
||||
record_name = fields.Char(string="Record Name", |
|
||||
compute="_compute_record_name") |
|
||||
|
|
||||
@api.multi |
|
||||
def open_record(self): |
|
||||
return { |
|
||||
'name': _('Found record'), |
|
||||
'view_type': 'form', |
|
||||
'view_mode': 'form', |
|
||||
'res_model': self.model_id.model, |
|
||||
'type': 'ir.actions.act_window', |
|
||||
'res_id': self.record_id, |
|
||||
'target': 'new' |
|
||||
} |
|
||||
|
|
||||
def _compute_record_name(self): |
|
||||
for record in self: |
|
||||
record_object = self.env[self.model_id.model].browse([ |
|
||||
self.record_id |
|
||||
]) |
|
||||
record.record_name = record_object.name_get()[0][1] |
|
||||
|
|
||||
|
|
||||
class DpoView(models.Model): |
|
||||
_name = "dpo.view" |
|
||||
|
|
||||
name = fields.Char(string="Search Term") |
|
||||
model_ids = fields.Many2many('ir.model', |
|
||||
'dpo_view_ir_model_rel', |
|
||||
string='Search in Model') |
|
||||
search_lines = fields.One2many('search.line', |
|
||||
'search_id', |
|
||||
string='Search Result') |
|
||||
|
|
||||
@api.multi |
|
||||
def search_string(self): |
|
||||
search_line_ids = self.env['search.line'].search([ |
|
||||
('search_id', '=', self.id) |
|
||||
]) |
|
||||
search_line_ids.unlink() |
|
||||
final_list = [] |
|
||||
for model_id in self.model_ids: |
|
||||
field_list = [] |
|
||||
found_match = {} |
|
||||
for field_id in model_id.field_id: |
|
||||
if field_id.ttype in ['char', 'html', 'text'] \ |
|
||||
and field_id.store: |
|
||||
field_list.append(field_id.name) |
|
||||
for field in field_list: |
|
||||
records = self.env[model_id.model].search([ |
|
||||
(field, 'ilike', self.name), |
|
||||
(field, '!=', '') |
|
||||
]) |
|
||||
for rec in records: |
|
||||
temp_list = found_match.get(rec.id, False) |
|
||||
if temp_list: |
|
||||
temp_list.append(field) |
|
||||
found_match[rec.id] = temp_list |
|
||||
else: |
|
||||
found_match[rec.id] = [field] |
|
||||
for key, value in found_match.items(): |
|
||||
founded_json = {} |
|
||||
founded_json["field_list"] = str(list(set(value))) |
|
||||
founded_json["name"] = str(model_id.name) |
|
||||
founded_json["model_id"] = model_id.id |
|
||||
founded_json["search_id"] = self.id |
|
||||
founded_json["record_id"] = key |
|
||||
final_list.append(founded_json) |
|
||||
if final_list: |
|
||||
for vals in final_list: |
|
||||
self.env['search.line'].create(vals) |
|
@ -1,3 +0,0 @@ |
|||||
To access contact search view in contacts view, the user has to activate the 'Data Protection Officer' checkbox |
|
||||
in User -> Technical Settings. |
|
||||
After that a new menu item 'Contact Search' will appear in the Contacts App. |
|
@ -1,2 +0,0 @@ |
|||||
View containing a search function for Data Protection Officers (DPO) to look up Customer Data. |
|
||||
All available Odoo models can be included in the search query looking for a specified string. |
|
@ -1,9 +0,0 @@ |
|||||
The new menu Contact Search is located in the Contacts App |
|
||||
|
|
||||
When accessing the Contact Search form a new query can be defined by |
|
||||
clicking on the Create button. |
|
||||
To perform a search the search string is required and the Odoo models that |
|
||||
should be searched have to be selected in the dropdown 'Search in model'. |
|
||||
|
|
||||
The search results are stored and can be accessed at a later time from the |
|
||||
tree view of 'Contact Search'. |
|
@ -1,8 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
|
||||
<odoo> |
|
||||
<record id="group_dpo" model="res.groups"> |
|
||||
<field name="name">Data Protection Officer</field> |
|
||||
<field name="category_id" ref="base.module_category_hidden"/> |
|
||||
</record> |
|
||||
</odoo> |
|
@ -1,3 +0,0 @@ |
|||||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
|
||||
access_dpo_view,access_dpo_view,model_dpo_view,group_dpo,1,1,1,1 |
|
||||
access_search_line,access_search_line,model_search_line,group_dpo,1,1,1,1 |
|
Before Width: 128 | Height: 128 | Size: 9.2 KiB |
@ -1,431 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8" ?> |
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
||||
<head> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" /> |
|
||||
<title>Contact Search Form</title> |
|
||||
<style type="text/css"> |
|
||||
|
|
||||
/* |
|
||||
:Author: David Goodger (goodger@python.org) |
|
||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $ |
|
||||
:Copyright: This stylesheet has been placed in the public domain. |
|
||||
|
|
||||
Default cascading style sheet for the HTML output of Docutils. |
|
||||
|
|
||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to |
|
||||
customize this style sheet. |
|
||||
*/ |
|
||||
|
|
||||
/* used to remove borders from tables and images */ |
|
||||
.borderless, table.borderless td, table.borderless th { |
|
||||
border: 0 } |
|
||||
|
|
||||
table.borderless td, table.borderless th { |
|
||||
/* Override padding for "table.docutils td" with "! important". |
|
||||
The right padding separates the table cells. */ |
|
||||
padding: 0 0.5em 0 0 ! important } |
|
||||
|
|
||||
.first { |
|
||||
/* Override more specific margin styles with "! important". */ |
|
||||
margin-top: 0 ! important } |
|
||||
|
|
||||
.last, .with-subtitle { |
|
||||
margin-bottom: 0 ! important } |
|
||||
|
|
||||
.hidden { |
|
||||
display: none } |
|
||||
|
|
||||
.subscript { |
|
||||
vertical-align: sub; |
|
||||
font-size: smaller } |
|
||||
|
|
||||
.superscript { |
|
||||
vertical-align: super; |
|
||||
font-size: smaller } |
|
||||
|
|
||||
a.toc-backref { |
|
||||
text-decoration: none ; |
|
||||
color: black } |
|
||||
|
|
||||
blockquote.epigraph { |
|
||||
margin: 2em 5em ; } |
|
||||
|
|
||||
dl.docutils dd { |
|
||||
margin-bottom: 0.5em } |
|
||||
|
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { |
|
||||
overflow: hidden; |
|
||||
} |
|
||||
|
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms |
|
||||
dl.docutils dt { |
|
||||
font-weight: bold } |
|
||||
*/ |
|
||||
|
|
||||
div.abstract { |
|
||||
margin: 2em 5em } |
|
||||
|
|
||||
div.abstract p.topic-title { |
|
||||
font-weight: bold ; |
|
||||
text-align: center } |
|
||||
|
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error, |
|
||||
div.hint, div.important, div.note, div.tip, div.warning { |
|
||||
margin: 2em ; |
|
||||
border: medium outset ; |
|
||||
padding: 1em } |
|
||||
|
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title, |
|
||||
div.important p.admonition-title, div.note p.admonition-title, |
|
||||
div.tip p.admonition-title { |
|
||||
font-weight: bold ; |
|
||||
font-family: sans-serif } |
|
||||
|
|
||||
div.attention p.admonition-title, div.caution p.admonition-title, |
|
||||
div.danger p.admonition-title, div.error p.admonition-title, |
|
||||
div.warning p.admonition-title, .code .error { |
|
||||
color: red ; |
|
||||
font-weight: bold ; |
|
||||
font-family: sans-serif } |
|
||||
|
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in |
|
||||
compound paragraphs. |
|
||||
div.compound .compound-first, div.compound .compound-middle { |
|
||||
margin-bottom: 0.5em } |
|
||||
|
|
||||
div.compound .compound-last, div.compound .compound-middle { |
|
||||
margin-top: 0.5em } |
|
||||
*/ |
|
||||
|
|
||||
div.dedication { |
|
||||
margin: 2em 5em ; |
|
||||
text-align: center ; |
|
||||
font-style: italic } |
|
||||
|
|
||||
div.dedication p.topic-title { |
|
||||
font-weight: bold ; |
|
||||
font-style: normal } |
|
||||
|
|
||||
div.figure { |
|
||||
margin-left: 2em ; |
|
||||
margin-right: 2em } |
|
||||
|
|
||||
div.footer, div.header { |
|
||||
clear: both; |
|
||||
font-size: smaller } |
|
||||
|
|
||||
div.line-block { |
|
||||
display: block ; |
|
||||
margin-top: 1em ; |
|
||||
margin-bottom: 1em } |
|
||||
|
|
||||
div.line-block div.line-block { |
|
||||
margin-top: 0 ; |
|
||||
margin-bottom: 0 ; |
|
||||
margin-left: 1.5em } |
|
||||
|
|
||||
div.sidebar { |
|
||||
margin: 0 0 0.5em 1em ; |
|
||||
border: medium outset ; |
|
||||
padding: 1em ; |
|
||||
background-color: #ffffee ; |
|
||||
width: 40% ; |
|
||||
float: right ; |
|
||||
clear: right } |
|
||||
|
|
||||
div.sidebar p.rubric { |
|
||||
font-family: sans-serif ; |
|
||||
font-size: medium } |
|
||||
|
|
||||
div.system-messages { |
|
||||
margin: 5em } |
|
||||
|
|
||||
div.system-messages h1 { |
|
||||
color: red } |
|
||||
|
|
||||
div.system-message { |
|
||||
border: medium outset ; |
|
||||
padding: 1em } |
|
||||
|
|
||||
div.system-message p.system-message-title { |
|
||||
color: red ; |
|
||||
font-weight: bold } |
|
||||
|
|
||||
div.topic { |
|
||||
margin: 2em } |
|
||||
|
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
|
||||
margin-top: 0.4em } |
|
||||
|
|
||||
h1.title { |
|
||||
text-align: center } |
|
||||
|
|
||||
h2.subtitle { |
|
||||
text-align: center } |
|
||||
|
|
||||
hr.docutils { |
|
||||
width: 75% } |
|
||||
|
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left { |
|
||||
clear: left ; |
|
||||
float: left ; |
|
||||
margin-right: 1em } |
|
||||
|
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right { |
|
||||
clear: right ; |
|
||||
float: right ; |
|
||||
margin-left: 1em } |
|
||||
|
|
||||
img.align-center, .figure.align-center, object.align-center { |
|
||||
display: block; |
|
||||
margin-left: auto; |
|
||||
margin-right: auto; |
|
||||
} |
|
||||
|
|
||||
table.align-center { |
|
||||
margin-left: auto; |
|
||||
margin-right: auto; |
|
||||
} |
|
||||
|
|
||||
.align-left { |
|
||||
text-align: left } |
|
||||
|
|
||||
.align-center { |
|
||||
clear: both ; |
|
||||
text-align: center } |
|
||||
|
|
||||
.align-right { |
|
||||
text-align: right } |
|
||||
|
|
||||
/* reset inner alignment in figures */ |
|
||||
div.align-right { |
|
||||
text-align: inherit } |
|
||||
|
|
||||
/* div.align-center * { */ |
|
||||
/* text-align: left } */ |
|
||||
|
|
||||
.align-top { |
|
||||
vertical-align: top } |
|
||||
|
|
||||
.align-middle { |
|
||||
vertical-align: middle } |
|
||||
|
|
||||
.align-bottom { |
|
||||
vertical-align: bottom } |
|
||||
|
|
||||
ol.simple, ul.simple { |
|
||||
margin-bottom: 1em } |
|
||||
|
|
||||
ol.arabic { |
|
||||
list-style: decimal } |
|
||||
|
|
||||
ol.loweralpha { |
|
||||
list-style: lower-alpha } |
|
||||
|
|
||||
ol.upperalpha { |
|
||||
list-style: upper-alpha } |
|
||||
|
|
||||
ol.lowerroman { |
|
||||
list-style: lower-roman } |
|
||||
|
|
||||
ol.upperroman { |
|
||||
list-style: upper-roman } |
|
||||
|
|
||||
p.attribution { |
|
||||
text-align: right ; |
|
||||
margin-left: 50% } |
|
||||
|
|
||||
p.caption { |
|
||||
font-style: italic } |
|
||||
|
|
||||
p.credits { |
|
||||
font-style: italic ; |
|
||||
font-size: smaller } |
|
||||
|
|
||||
p.label { |
|
||||
white-space: nowrap } |
|
||||
|
|
||||
p.rubric { |
|
||||
font-weight: bold ; |
|
||||
font-size: larger ; |
|
||||
color: maroon ; |
|
||||
text-align: center } |
|
||||
|
|
||||
p.sidebar-title { |
|
||||
font-family: sans-serif ; |
|
||||
font-weight: bold ; |
|
||||
font-size: larger } |
|
||||
|
|
||||
p.sidebar-subtitle { |
|
||||
font-family: sans-serif ; |
|
||||
font-weight: bold } |
|
||||
|
|
||||
p.topic-title { |
|
||||
font-weight: bold } |
|
||||
|
|
||||
pre.address { |
|
||||
margin-bottom: 0 ; |
|
||||
margin-top: 0 ; |
|
||||
font: inherit } |
|
||||
|
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code { |
|
||||
margin-left: 2em ; |
|
||||
margin-right: 2em } |
|
||||
|
|
||||
pre.code .ln { color: grey; } /* line numbers */ |
|
||||
pre.code, code { background-color: #eeeeee } |
|
||||
pre.code .comment, code .comment { color: #5C6576 } |
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } |
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 } |
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 } |
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1} |
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289} |
|
||||
|
|
||||
span.classifier { |
|
||||
font-family: sans-serif ; |
|
||||
font-style: oblique } |
|
||||
|
|
||||
span.classifier-delimiter { |
|
||||
font-family: sans-serif ; |
|
||||
font-weight: bold } |
|
||||
|
|
||||
span.interpreted { |
|
||||
font-family: sans-serif } |
|
||||
|
|
||||
span.option { |
|
||||
white-space: nowrap } |
|
||||
|
|
||||
span.pre { |
|
||||
white-space: pre } |
|
||||
|
|
||||
span.problematic { |
|
||||
color: red } |
|
||||
|
|
||||
span.section-subtitle { |
|
||||
/* font-size relative to parent (h1..h6 element) */ |
|
||||
font-size: 80% } |
|
||||
|
|
||||
table.citation { |
|
||||
border-left: solid 1px gray; |
|
||||
margin-left: 1px } |
|
||||
|
|
||||
table.docinfo { |
|
||||
margin: 2em 4em } |
|
||||
|
|
||||
table.docutils { |
|
||||
margin-top: 0.5em ; |
|
||||
margin-bottom: 0.5em } |
|
||||
|
|
||||
table.footnote { |
|
||||
border-left: solid 1px black; |
|
||||
margin-left: 1px } |
|
||||
|
|
||||
table.docutils td, table.docutils th, |
|
||||
table.docinfo td, table.docinfo th { |
|
||||
padding-left: 0.5em ; |
|
||||
padding-right: 0.5em ; |
|
||||
vertical-align: top } |
|
||||
|
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name { |
|
||||
font-weight: bold ; |
|
||||
text-align: left ; |
|
||||
white-space: nowrap ; |
|
||||
padding-left: 0 } |
|
||||
|
|
||||
/* "booktabs" style (no vertical lines) */ |
|
||||
table.docutils.booktabs { |
|
||||
border: 0px; |
|
||||
border-top: 2px solid; |
|
||||
border-bottom: 2px solid; |
|
||||
border-collapse: collapse; |
|
||||
} |
|
||||
table.docutils.booktabs * { |
|
||||
border: 0px; |
|
||||
} |
|
||||
table.docutils.booktabs th { |
|
||||
border-bottom: thin solid; |
|
||||
text-align: left; |
|
||||
} |
|
||||
|
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
|
||||
font-size: 100% } |
|
||||
|
|
||||
ul.auto-toc { |
|
||||
list-style-type: none } |
|
||||
|
|
||||
</style> |
|
||||
</head> |
|
||||
<body> |
|
||||
<div class="document" id="contact-search-form"> |
|
||||
<h1 class="title">Contact Search Form</h1> |
|
||||
|
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
||||
!! This file is generated by oca-gen-addon-readme !! |
|
||||
!! changes will be overwritten. !! |
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> |
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/data-protection/tree/11.0/contact_search_form"><img alt="OCA/data-protection" src="https://img.shields.io/badge/github-OCA%2Fdata--protection-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/data-protection-11-0/data-protection-11-0-contact_search_form"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/263/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> |
|
||||
<p>View containing a search function for Data Protection Officers (DPO) to look up Customer Data. |
|
||||
All available Odoo models can be included in the search query looking for a specified string.</p> |
|
||||
<p><strong>Table of contents</strong></p> |
|
||||
<div class="contents local topic" id="contents"> |
|
||||
<ul class="simple"> |
|
||||
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> |
|
||||
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li> |
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> |
|
||||
<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> |
|
||||
<li><a class="reference internal" href="#authors" id="id5">Authors</a></li> |
|
||||
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> |
|
||||
</ul> |
|
||||
</li> |
|
||||
</ul> |
|
||||
</div> |
|
||||
<div class="section" id="configuration"> |
|
||||
<h1><a class="toc-backref" href="#id1">Configuration</a></h1> |
|
||||
<p>To access contact search view in contacts view, the user has to activate the ‘Data Protection Officer’ checkbox |
|
||||
in User -> Technical Settings. |
|
||||
After that a new menu item ‘Contact Search’ will appear in the Contacts App.</p> |
|
||||
</div> |
|
||||
<div class="section" id="usage"> |
|
||||
<h1><a class="toc-backref" href="#id2">Usage</a></h1> |
|
||||
<p>The new menu Contact Search is located in the Contacts App</p> |
|
||||
<p>When accessing the Contact Search form a new query can be defined by |
|
||||
clicking on the Create button. |
|
||||
To perform a search the search string is required and the Odoo models that |
|
||||
should be searched have to be selected in the dropdown ‘Search in model’.</p> |
|
||||
<p>The search results are stored and can be accessed at a later time from the |
|
||||
tree view of ‘Contact Search’.</p> |
|
||||
</div> |
|
||||
<div class="section" id="bug-tracker"> |
|
||||
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> |
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/data-protection/issues">GitHub Issues</a>. |
|
||||
In case of trouble, please check there if your issue has already been reported. |
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed |
|
||||
<a class="reference external" href="https://github.com/OCA/data-protection/issues/new?body=module:%20contact_search_form%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> |
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p> |
|
||||
</div> |
|
||||
<div class="section" id="credits"> |
|
||||
<h1><a class="toc-backref" href="#id4">Credits</a></h1> |
|
||||
<div class="section" id="authors"> |
|
||||
<h2><a class="toc-backref" href="#id5">Authors</a></h2> |
|
||||
<ul class="simple"> |
|
||||
<li>IT IS AG</li> |
|
||||
</ul> |
|
||||
</div> |
|
||||
<div class="section" id="maintainers"> |
|
||||
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2> |
|
||||
<p>This module is maintained by the OCA.</p> |
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> |
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose |
|
||||
mission is to support the collaborative development of Odoo features and |
|
||||
promote its widespread use.</p> |
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/data-protection/tree/11.0/contact_search_form">OCA/data-protection</a> project on GitHub.</p> |
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</body> |
|
||||
</html> |
|
@ -1,79 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
|
||||
<odoo> |
|
||||
|
|
||||
<record id="view_dpo_form_view_itis" model="ir.ui.view"> |
|
||||
<field name="name">view.dpo.form.view.itis</field> |
|
||||
<field name="model">dpo.view</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<form string="Customer Info"> |
|
||||
<div class="oe_title"> |
|
||||
<h1> |
|
||||
<field name="name" default_focus="1" placeholder="Search Terms" required="1"/> |
|
||||
</h1> |
|
||||
|
|
||||
</div> |
|
||||
<group> |
|
||||
<field name="model_ids" widget="many2many_tags"/> |
|
||||
</group> |
|
||||
<br/> |
|
||||
<br/> |
|
||||
<center> |
|
||||
<button name="search_string" type="object" string="SEARCH" class="btn-primary"/> |
|
||||
</center> |
|
||||
<br/> |
|
||||
<field name="search_lines"/> |
|
||||
</form> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="dpo_view_tree" model="ir.ui.view"> |
|
||||
<field name="name">DPO Tree view</field> |
|
||||
<field name="model">dpo.view</field> |
|
||||
<field name="priority">1</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<tree string="Search Contact"> |
|
||||
<field name='name'/> |
|
||||
<field name="model_ids"/> |
|
||||
<field name="search_lines"/> |
|
||||
</tree> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="action_dpo_view_itis" model="ir.actions.act_window"> |
|
||||
<field name="name">Customer Info</field> |
|
||||
<field name="type">ir.actions.act_window</field> |
|
||||
<field name="res_model">dpo.view</field> |
|
||||
<field name="view_mode">tree,form</field> |
|
||||
<field name="view_id" ref="dpo_view_tree"/> |
|
||||
<field name="view_type">form</field> |
|
||||
</record> |
|
||||
|
|
||||
<menuitem id="menu_customer_info_base" |
|
||||
name="Contact Search" |
|
||||
parent="contacts.menu_contacts" |
|
||||
sequence="20" |
|
||||
groups="contact_search_form.group_dpo"/> |
|
||||
|
|
||||
<menuitem id="menu_customer_info" |
|
||||
name="Contact Search" |
|
||||
action="action_dpo_view_itis" |
|
||||
parent="menu_customer_info_base" |
|
||||
sequence="21" |
|
||||
groups="contact_search_form.group_dpo"/> |
|
||||
|
|
||||
<record id="search_line_tree_view_itis" model="ir.ui.view"> |
|
||||
<field name="name">search.line.tree.view.itis</field> |
|
||||
<field name="model">search.line</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<tree string="Search Results" create="false" delete="false" edit="false"> |
|
||||
<field name="model_id"/> |
|
||||
<field name="record_id"/> |
|
||||
<field name="record_name"/> |
|
||||
<field name="field_list"/> |
|
||||
<button name="open_record" type="object" string="VIEW RECORD" class="btn-primary"/> |
|
||||
</tree> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
</odoo> |
|
@ -1,4 +0,0 @@ |
|||||
# List the OCA project dependencies, one per line |
|
||||
# Add a repository url and branch if you need a forked version |
|
||||
# |
|
||||
reporting-engine |
|
@ -1,28 +1,22 @@ |
|||||
# 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': '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, " |
|
||||
"Tecnativa, " |
|
||||
"Odoo Community Association (OCA)", |
|
||||
'website': 'http://www.github.com/OCA/data-protection', |
|
||||
'license': 'AGPL-3', |
|
||||
'data': [ |
|
||||
'security/data_protection.xml', |
|
||||
'security/ir.model.access.csv', |
|
||||
'views/data_protection_menu_view.xml', |
|
||||
'views/privacy_activity_view.xml', |
|
||||
|
"name": "Data Privacy and Protection", |
||||
|
"version": "13.0.1.0.1", |
||||
|
"category": "Data Protection", |
||||
|
"summary": "Provides data privacy and protection features " |
||||
|
"to comply to regulations, such as GDPR.", |
||||
|
"author": "Eficent, " "Tecnativa, " "Odoo Community Association (OCA)", |
||||
|
"website": "http://www.github.com/OCA/data-protection", |
||||
|
"license": "AGPL-3", |
||||
|
"data": [ |
||||
|
"security/data_protection.xml", |
||||
|
"security/ir.model.access.csv", |
||||
|
"views/data_protection_menu_view.xml", |
||||
|
"views/privacy_activity_view.xml", |
||||
], |
], |
||||
'demo': [ |
|
||||
'demo/res_users.xml', |
|
||||
], |
|
||||
'depends': [ |
|
||||
'mail', |
|
||||
], |
|
||||
'installable': True, |
|
||||
'application': True, |
|
||||
|
"demo": ["demo/res_users.xml"], |
||||
|
"depends": ["mail"], |
||||
|
"installable": True, |
||||
|
"application": True, |
||||
} |
} |
@ -1,10 +1,8 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- Copyright 2018 Tecnativa - Jairo Llopis |
<!-- Copyright 2018 Tecnativa - Jairo Llopis |
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
||||
<data> |
<data> |
||||
|
|
||||
<record id="base.user_demo" model="res.users"> |
<record id="base.user_demo" model="res.users"> |
||||
<field name="groups_id" eval="[(4, ref('group_data_protection_user'))]"/> |
|
||||
|
<field name="groups_id" eval="[(4, ref('group_data_protection_user'))]" /> |
||||
</record> |
</record> |
||||
|
|
||||
</data> |
</data> |
@ -1,207 +1,358 @@ |
|||||
# Translation of Odoo Server. |
# Translation of Odoo Server. |
||||
# This file contains the translation of the following modules: |
# This file contains the translation of the following modules: |
||||
# * privacy |
|
||||
|
# * privacy |
||||
# |
# |
||||
msgid "" |
msgid "" |
||||
msgstr "" |
msgstr "" |
||||
"Project-Id-Version: Odoo Server 11.0\n" |
"Project-Id-Version: Odoo Server 11.0\n" |
||||
"Report-Msgid-Bugs-To: \n" |
"Report-Msgid-Bugs-To: \n" |
||||
"PO-Revision-Date: 2019-01-27 16:03+0000\n" |
|
||||
"Last-Translator: Nicolas JEUDY <njeudy@panda-chi.io>\n" |
|
||||
|
"Last-Translator: Automatically generated\n" |
||||
"Language-Team: none\n" |
"Language-Team: none\n" |
||||
"Language: fr\n" |
"Language: fr\n" |
||||
"MIME-Version: 1.0\n" |
"MIME-Version: 1.0\n" |
||||
"Content-Type: text/plain; charset=UTF-8\n" |
"Content-Type: text/plain; charset=UTF-8\n" |
||||
"Content-Transfer-Encoding: \n" |
"Content-Transfer-Encoding: \n" |
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
||||
"X-Generator: Weblate 3.4\n" |
|
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_active |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_needaction |
||||
|
msgid "Action Needed" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__active |
||||
msgid "Active" |
msgid "Active" |
||||
msgstr "Actif" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.actions.act_window,name:privacy.activity_action |
#: model:ir.actions.act_window,name:privacy.activity_action |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_ids |
||||
#: model:ir.ui.menu,name:privacy.menu_privacy_activity |
#: model:ir.ui.menu,name:privacy.menu_privacy_activity |
||||
msgid "Activities" |
msgid "Activities" |
||||
msgstr "Traitements" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_state |
||||
|
msgid "Activity State" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.ui.view,arch_db:privacy.activity_search |
|
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_search |
||||
msgid "Archived" |
msgid "Archived" |
||||
msgstr "Archivé" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,help:privacy.field_privacy_activity_subject_find |
|
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__subject_find |
||||
msgid "Are affected subjects present in this database?" |
msgid "Are affected subjects present in this database?" |
||||
msgstr "Est ce que les personnes impactées sont dans cette base de données ?" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_attachment_count |
||||
|
msgid "Attachment Count" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.actions.act_window,help:privacy.activity_action |
|
||||
|
#: model_terms:ir.actions.act_window,help:privacy.activity_action |
||||
msgid "Click to add a data processing activity." |
msgid "Click to add a data processing activity." |
||||
msgstr "Cliquez pour ajouter un traitement au registre." |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_controller_id |
|
||||
#: model:ir.ui.view,arch_db:privacy.activity_search |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__controller_id |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_search |
||||
msgid "Controller" |
msgid "Controller" |
||||
msgstr "Responsable" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_create_uid |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__create_uid |
||||
msgid "Created by" |
msgid "Created by" |
||||
msgstr "Créé par" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_create_date |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__create_date |
||||
msgid "Created on" |
msgid "Created on" |
||||
msgstr "Créé le" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.module.category,name:privacy.module_category_data_protection |
#: model:ir.module.category,name:privacy.module_category_data_protection |
||||
msgid "Data Protection" |
msgid "Data Protection" |
||||
msgstr "Protection des données" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:res.groups,name:privacy.group_data_protection_manager |
#: model:res.groups,name:privacy.group_data_protection_manager |
||||
msgid "Data Protection Manager" |
msgid "Data Protection Manager" |
||||
msgstr "Responsable des traitements" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.actions.act_window,name:privacy.action_data_protection_config |
#: model:ir.actions.act_window,name:privacy.action_data_protection_config |
||||
msgid "Data Protection Settings" |
msgid "Data Protection Settings" |
||||
msgstr "Protection des données - Paramètres" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:res.groups,name:privacy.group_data_protection_user |
#: model:res.groups,name:privacy.group_data_protection_user |
||||
msgid "Data Protection User" |
msgid "Data Protection User" |
||||
msgstr "Protection des données - Utilisateur" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model,name:privacy.model_privacy_activity |
#: model:ir.model,name:privacy.model_privacy_activity |
||||
msgid "Data processing activities" |
msgid "Data processing activities" |
||||
msgstr "Traitements des données personnelles" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.actions.act_window,help:privacy.activity_action |
|
||||
msgid "Data processing activities define why, how and what you do\n" |
|
||||
|
#: model_terms:ir.actions.act_window,help:privacy.activity_action |
||||
|
msgid "" |
||||
|
"Data processing activities define why, how and what you do\n" |
||||
" with subjects' personal data." |
" with subjects' personal data." |
||||
msgstr "" |
msgstr "" |
||||
"Le registre des traitements des données personnelles définit\n" |
|
||||
"…………pourquoi et comment sont utilisées les données personnelles." |
|
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_subject_find |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__subject_find |
||||
msgid "Define subjects" |
msgid "Define subjects" |
||||
msgstr "Filtrer les personnes impactées" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_description |
|
||||
#: model:ir.ui.view,arch_db:privacy.activity_form |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__description |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
msgid "Description" |
msgid "Description" |
||||
msgstr "Description" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.ui.view,arch_db:privacy.activity_form |
|
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
msgid "Details" |
msgid "Details" |
||||
msgstr "Détails" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_display_name |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__display_name |
||||
msgid "Display Name" |
msgid "Display Name" |
||||
msgstr "Nom affiché" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_follower_ids |
||||
|
msgid "Followers" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_channel_ids |
||||
|
msgid "Followers (Channels)" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_partner_ids |
||||
|
msgid "Followers (Partners)" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.ui.view,arch_db:privacy.activity_search |
|
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_search |
||||
msgid "Group By" |
msgid "Group By" |
||||
msgstr "Grouper par" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,help:privacy.field_privacy_activity_description |
|
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__description |
||||
msgid "How is personal data used here? Why? Etc." |
msgid "How is personal data used here? Why? Etc." |
||||
msgstr "Comment sont utilisées les données personnelles ? Pourquoi ? Etc." |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_id |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__id |
||||
msgid "ID" |
msgid "ID" |
||||
msgstr "ID" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_unread |
||||
|
msgid "If checked new messages require your attention." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_needaction |
||||
|
msgid "If checked, new messages require your attention." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_has_error |
||||
|
msgid "If checked, some messages have a delivery error." |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity___last_update |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_is_follower |
||||
|
msgid "Is Follower" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity____last_update |
||||
msgid "Last Modified on" |
msgid "Last Modified on" |
||||
msgstr "Modificatié le" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_write_uid |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__write_uid |
||||
msgid "Last Updated by" |
msgid "Last Updated by" |
||||
msgstr "Mis à jour par" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_write_date |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__write_date |
||||
msgid "Last Updated on" |
msgid "Last Updated on" |
||||
msgstr "Mis à jour le" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_main_attachment_id |
||||
|
msgid "Main Attachment" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.ui.menu,name:privacy.menu_data_protection_master_data |
#: model:ir.ui.menu,name:privacy.menu_data_protection_master_data |
||||
msgid "Master Data" |
msgid "Master Data" |
||||
msgstr "Registre(s)" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_has_error |
||||
|
msgid "Message Delivery error" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_ids |
||||
|
msgid "Messages" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_name |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__name |
||||
msgid "Name" |
msgid "Name" |
||||
msgstr "Nom" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_date_deadline |
||||
|
msgid "Next Activity Deadline" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_summary |
||||
|
msgid "Next Activity Summary" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_type_id |
||||
|
msgid "Next Activity Type" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_needaction_counter |
||||
|
msgid "Number of Actions" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_has_error_counter |
||||
|
msgid "Number of error" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_needaction_counter |
||||
|
msgid "Number of messages which requires an action" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_has_error_counter |
||||
|
msgid "Number of messages with delivery error" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_unread_counter |
||||
|
msgid "Number of unread messages" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: selection:privacy.activity,activity_state:0 |
||||
|
msgid "Overdue" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.actions.act_window,name:privacy.action_data_protection_partner_form |
#: model:ir.actions.act_window,name:privacy.action_data_protection_partner_form |
||||
#: model:ir.ui.menu,name:privacy.menu_data_protection_partner |
#: model:ir.ui.menu,name:privacy.menu_data_protection_partner |
||||
msgid "Partners" |
msgid "Partners" |
||||
msgstr "Contacts" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: selection:privacy.activity,activity_state:0 |
||||
|
msgid "Planned" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.ui.menu,name:privacy.parent_menu_data_protection |
#: model:ir.ui.menu,name:privacy.parent_menu_data_protection |
||||
msgid "Privacy" |
msgid "Privacy" |
||||
msgstr "Vie privée" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_processor_ids |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__processor_ids |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
msgid "Processors" |
msgid "Processors" |
||||
msgstr "Sous-traitants" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.ui.menu,name:privacy.menu_data_protection_report |
#: model:ir.ui.menu,name:privacy.menu_data_protection_report |
||||
msgid "Reports" |
msgid "Reports" |
||||
msgstr "Rapports" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_user_id |
||||
|
msgid "Responsible User" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,help:privacy.field_privacy_activity_subject_domain |
|
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__subject_domain |
||||
msgid "Selection filter to find specific subjects included." |
msgid "Selection filter to find specific subjects included." |
||||
msgstr "Ajouter des filtres pour associer les personnes concernées." |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.ui.menu,name:privacy.menu_data_protection_setting |
#: model:ir.ui.menu,name:privacy.menu_data_protection_setting |
||||
msgid "Settings" |
msgid "Settings" |
||||
msgstr "Configuration" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,field_description:privacy.field_privacy_activity_subject_domain |
|
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__activity_state |
||||
|
msgid "" |
||||
|
"Status based on activities\n" |
||||
|
"Overdue: Due date is already passed\n" |
||||
|
"Today: Activity date is today\n" |
||||
|
"Planned: Future activities." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
|
msgid "Subjects details" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__subject_domain |
||||
msgid "Subjects filter" |
msgid "Subjects filter" |
||||
msgstr "Filtre des personnes concernées" |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: selection:privacy.activity,activity_state:0 |
||||
|
msgid "Today" |
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.ui.menu,name:privacy.menu_data_protection_transaction |
#: model:ir.ui.menu,name:privacy.menu_data_protection_transaction |
||||
#, fuzzy |
|
||||
msgid "Transactions" |
msgid "Transactions" |
||||
msgstr "Traitements" |
|
||||
|
msgstr "" |
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,help:privacy.field_privacy_activity_controller_id |
|
||||
msgid "Whoever determines the purposes and means of the processing of personal data." |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_unread |
||||
|
msgid "Unread Messages" |
||||
msgstr "" |
msgstr "" |
||||
"Personnes définissant les finalités et les raisons du traitement des " |
|
||||
"données personnelles." |
|
||||
|
|
||||
#. module: privacy |
#. module: privacy |
||||
#: model:ir.model.fields,help:privacy.field_privacy_activity_processor_ids |
|
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_unread_counter |
||||
|
msgid "Unread Messages Counter" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__controller_id |
||||
|
msgid "" |
||||
|
"Whoever determines the purposes and means of the processing of personal data." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__processor_ids |
||||
msgid "Whoever processes personal data on behalf of the controller." |
msgid "Whoever processes personal data on behalf of the controller." |
||||
msgstr "Sous-traitants utilisant ces données personnelles." |
|
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
|
msgid "processors" |
||||
|
msgstr "" |
@ -0,0 +1,362 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * privacy |
||||
|
# |
||||
|
msgid "" |
||||
|
msgstr "" |
||||
|
"Project-Id-Version: Odoo Server 12.0\n" |
||||
|
"Report-Msgid-Bugs-To: \n" |
||||
|
"PO-Revision-Date: 2019-11-14 16:34+0000\n" |
||||
|
"Last-Translator: Bole <bole@dajmi5.com>\n" |
||||
|
"Language-Team: none\n" |
||||
|
"Language: hr\n" |
||||
|
"MIME-Version: 1.0\n" |
||||
|
"Content-Type: text/plain; charset=UTF-8\n" |
||||
|
"Content-Transfer-Encoding: \n" |
||||
|
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" |
||||
|
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" |
||||
|
"X-Generator: Weblate 3.8\n" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_needaction |
||||
|
msgid "Action Needed" |
||||
|
msgstr "Potrebna radnja" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__active |
||||
|
msgid "Active" |
||||
|
msgstr "Aktivan" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.actions.act_window,name:privacy.activity_action |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_ids |
||||
|
#: model:ir.ui.menu,name:privacy.menu_privacy_activity |
||||
|
msgid "Activities" |
||||
|
msgstr "Aktivnosti" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_state |
||||
|
#, fuzzy |
||||
|
msgid "Activity State" |
||||
|
msgstr "Aktivnosti" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_search |
||||
|
msgid "Archived" |
||||
|
msgstr "Arhivirano" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__subject_find |
||||
|
msgid "Are affected subjects present in this database?" |
||||
|
msgstr "Jesu li dotični subjekti prisutni u ovoj bazi?" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_attachment_count |
||||
|
msgid "Attachment Count" |
||||
|
msgstr "Broj priloga" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.actions.act_window,help:privacy.activity_action |
||||
|
msgid "Click to add a data processing activity." |
||||
|
msgstr "Kliknite za dodavanje aktivnosti obrade podataka." |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__controller_id |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_search |
||||
|
msgid "Controller" |
||||
|
msgstr "Kontroler" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__create_uid |
||||
|
msgid "Created by" |
||||
|
msgstr "Kreirao" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__create_date |
||||
|
msgid "Created on" |
||||
|
msgstr "Kreirano" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.module.category,name:privacy.module_category_data_protection |
||||
|
msgid "Data Protection" |
||||
|
msgstr "Zaštita podataka" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:res.groups,name:privacy.group_data_protection_manager |
||||
|
msgid "Data Protection Manager" |
||||
|
msgstr "Upravlja zaštitom podataka" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.actions.act_window,name:privacy.action_data_protection_config |
||||
|
msgid "Data Protection Settings" |
||||
|
msgstr "Postavke zaštite podataka" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:res.groups,name:privacy.group_data_protection_user |
||||
|
msgid "Data Protection User" |
||||
|
msgstr "Korisnik zaštite podataka" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model,name:privacy.model_privacy_activity |
||||
|
msgid "Data processing activities" |
||||
|
msgstr "Aktivnosti obrade podataka" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.actions.act_window,help:privacy.activity_action |
||||
|
msgid "" |
||||
|
"Data processing activities define why, how and what you do\n" |
||||
|
" with subjects' personal data." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__subject_find |
||||
|
msgid "Define subjects" |
||||
|
msgstr "Definirajte subjekte" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__description |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
|
msgid "Description" |
||||
|
msgstr "Opis" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
|
msgid "Details" |
||||
|
msgstr "Pojedinosti" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__display_name |
||||
|
msgid "Display Name" |
||||
|
msgstr "Naziv" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_follower_ids |
||||
|
msgid "Followers" |
||||
|
msgstr "Pratitelji" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_channel_ids |
||||
|
msgid "Followers (Channels)" |
||||
|
msgstr "Pratitelji (kanali)" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_partner_ids |
||||
|
msgid "Followers (Partners)" |
||||
|
msgstr "Pratitelji (partneri)" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_search |
||||
|
msgid "Group By" |
||||
|
msgstr "Grupiraj po" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__description |
||||
|
msgid "How is personal data used here? Why? Etc." |
||||
|
msgstr "Kako su ovdje korišteni osobni podaci? Zašto? itd..." |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__id |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_unread |
||||
|
msgid "If checked new messages require your attention." |
||||
|
msgstr "Ako je označeno, nove poruke zahtijevaju važu pozornost." |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_needaction |
||||
|
msgid "If checked, new messages require your attention." |
||||
|
msgstr "Ako je označeno, nove poruke zahtijevaju važu pozornost." |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_has_error |
||||
|
msgid "If checked, some messages have a delivery error." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_is_follower |
||||
|
msgid "Is Follower" |
||||
|
msgstr "Je pratitelj" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity____last_update |
||||
|
msgid "Last Modified on" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__write_uid |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__write_date |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_main_attachment_id |
||||
|
msgid "Main Attachment" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.ui.menu,name:privacy.menu_data_protection_master_data |
||||
|
msgid "Master Data" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_has_error |
||||
|
msgid "Message Delivery error" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_ids |
||||
|
msgid "Messages" |
||||
|
msgstr "Poruke" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__name |
||||
|
msgid "Name" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_date_deadline |
||||
|
msgid "Next Activity Deadline" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_summary |
||||
|
msgid "Next Activity Summary" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_type_id |
||||
|
msgid "Next Activity Type" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_needaction_counter |
||||
|
msgid "Number of Actions" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_has_error_counter |
||||
|
msgid "Number of error" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_needaction_counter |
||||
|
msgid "Number of messages which requires an action" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_has_error_counter |
||||
|
msgid "Number of messages with delivery error" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__message_unread_counter |
||||
|
msgid "Number of unread messages" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: selection:privacy.activity,activity_state:0 |
||||
|
msgid "Overdue" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.actions.act_window,name:privacy.action_data_protection_partner_form |
||||
|
#: model:ir.ui.menu,name:privacy.menu_data_protection_partner |
||||
|
msgid "Partners" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: selection:privacy.activity,activity_state:0 |
||||
|
msgid "Planned" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.ui.menu,name:privacy.parent_menu_data_protection |
||||
|
msgid "Privacy" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__processor_ids |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
|
msgid "Processors" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.ui.menu,name:privacy.menu_data_protection_report |
||||
|
msgid "Reports" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__activity_user_id |
||||
|
msgid "Responsible User" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__subject_domain |
||||
|
msgid "Selection filter to find specific subjects included." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.ui.menu,name:privacy.menu_data_protection_setting |
||||
|
msgid "Settings" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__activity_state |
||||
|
msgid "" |
||||
|
"Status based on activities\n" |
||||
|
"Overdue: Due date is already passed\n" |
||||
|
"Today: Activity date is today\n" |
||||
|
"Planned: Future activities." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
|
msgid "Subjects details" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__subject_domain |
||||
|
msgid "Subjects filter" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: selection:privacy.activity,activity_state:0 |
||||
|
msgid "Today" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.ui.menu,name:privacy.menu_data_protection_transaction |
||||
|
msgid "Transactions" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_unread |
||||
|
msgid "Unread Messages" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,field_description:privacy.field_privacy_activity__message_unread_counter |
||||
|
msgid "Unread Messages Counter" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__controller_id |
||||
|
msgid "" |
||||
|
"Whoever determines the purposes and means of the processing of personal data." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model:ir.model.fields,help:privacy.field_privacy_activity__processor_ids |
||||
|
msgid "Whoever processes personal data on behalf of the controller." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: privacy |
||||
|
#: model_terms:ir.ui.view,arch_db:privacy.activity_form |
||||
|
msgid "processors" |
||||
|
msgstr "" |
@ -1,2 +1,3 @@ |
|||||
* Miquel Raïch <miquel.raich@eficent.com> |
* Miquel Raïch <miquel.raich@eficent.com> |
||||
* Daniel Reis <dreis.pt@hotmail.com> |
* Daniel Reis <dreis.pt@hotmail.com> |
||||
|
* Nicolas JEUDY <https://github.com/njeudy> |
@ -1,30 +1,22 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- 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> |
||||
<data noupdate="0"> |
|
||||
|
|
||||
|
<data> |
||||
<record model="ir.module.category" id="module_category_data_protection"> |
<record model="ir.module.category" id="module_category_data_protection"> |
||||
<field name="name">Data Protection</field> |
<field name="name">Data Protection</field> |
||||
<field name="sequence">30</field> |
<field name="sequence">30</field> |
||||
</record> |
</record> |
||||
|
|
||||
<record id="group_data_protection_user" model="res.groups"> |
<record id="group_data_protection_user" model="res.groups"> |
||||
<field name="name">Data Protection User</field> |
<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"/> |
|
||||
|
<field name="implied_ids" eval="[(4, ref('base.group_user'))]" /> |
||||
|
<field name="category_id" ref="module_category_data_protection" /> |
||||
</record> |
</record> |
||||
|
|
||||
<record id="group_data_protection_manager" model="res.groups"> |
<record id="group_data_protection_manager" model="res.groups"> |
||||
<field name="name">Data Protection Manager</field> |
<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"/> |
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]"/> |
|
||||
|
<field name="implied_ids" eval="[(4, ref('group_data_protection_user'))]" /> |
||||
|
<field name="category_id" ref="module_category_data_protection" /> |
||||
|
<field name="users" eval="[(4, ref('base.user_admin'))]" /> |
||||
</record> |
</record> |
||||
|
|
||||
<record id="base.user_root" model="res.users"> |
|
||||
<field name="groups_id" eval="[(4, ref('group_data_protection_manager'))]"/> |
|
||||
</record> |
|
||||
|
|
||||
</data> |
</data> |
||||
</odoo> |
</odoo> |
@ -1,16 +1,26 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- Copyright 2018 Tecnativa - Jairo Llopis |
<!-- Copyright 2018 Tecnativa - Jairo Llopis |
||||
Copyright 2019 initOS GmbH - Florian Kantelberg |
Copyright 2019 initOS GmbH - Florian Kantelberg |
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
||||
|
|
||||
<data> |
<data> |
||||
|
|
||||
<record id="update_opt_out" model="ir.actions.server"> |
|
||||
<field name="name">Update partner's opt out</field> |
|
||||
<field name="model_id" ref="model_privacy_consent"/> |
|
||||
<field name="crud_model_id" ref="base.model_res_partner"/> |
|
||||
|
<record id="sync_blacklist" model="ir.actions.server"> |
||||
|
<field name="name">Sync partner's email blacklist status</field> |
||||
|
<field name="model_id" ref="model_privacy_consent" /> |
||||
|
<field name="crud_model_id" ref="base.model_res_partner" /> |
||||
<field name="state">code</field> |
<field name="state">code</field> |
||||
<field name="code">records.mapped('partner_id').write({'opt_out': not record.accepted})</field> |
|
||||
|
<field name="code"> |
||||
|
for consent in records: |
||||
|
email = consent.partner_id.email |
||||
|
# Skip records without email, although highly improbable |
||||
|
if not email: |
||||
|
continue |
||||
|
# Choose method to sync acceptance and blacklisting |
||||
|
if consent.accepted: |
||||
|
method = env["mail.blacklist"]._remove |
||||
|
else: |
||||
|
method = env["mail.blacklist"]._add |
||||
|
# Apply user desire |
||||
|
method(email) |
||||
|
</field> |
||||
</record> |
</record> |
||||
|
|
||||
</data> |
</data> |
@ -1,18 +1,15 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<!-- Copyright 2018 Tecnativa - Jairo Llopis |
<!-- Copyright 2018 Tecnativa - Jairo Llopis |
||||
Copyright 2019 initOS GmbH - Florian Kantelberg |
Copyright 2019 initOS GmbH - Florian Kantelberg |
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
||||
|
|
||||
<data> |
<data> |
||||
|
|
||||
<record id="cron_auto_consent" model="ir.cron"> |
<record id="cron_auto_consent" model="ir.cron"> |
||||
<field name="name">Request automatic data processing consents</field> |
<field name="name">Request automatic data processing consents</field> |
||||
<field name="model_id" ref="model_privacy_activity"/> |
|
||||
|
<field name="model_id" ref="model_privacy_activity" /> |
||||
<field name="state">code</field> |
<field name="state">code</field> |
||||
<field name="code">model._cron_new_consents()</field> |
<field name="code">model._cron_new_consents()</field> |
||||
<field name="interval_number">1</field> |
<field name="interval_number">1</field> |
||||
<field name="interval_type">days</field> |
<field name="interval_type">days</field> |
||||
<field name="numbercall">-1</field> |
<field name="numbercall">-1</field> |
||||
</record> |
</record> |
||||
|
|
||||
</data> |
</data> |
@ -0,0 +1,7 @@ |
|||||
|
/* Copyright 2020 Tecnativa - Jairo Llopis |
||||
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */ |
||||
|
|
||||
|
.o_consent_form { |
||||
|
// Need !important to override an inline style of max-width: 300px |
||||
|
max-width: 100% !important; |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
|
<!-- Copyright 2020 Tecnativa - Jairo Llopis |
||||
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
||||
|
<data> |
||||
|
<template id="assets_frontend" inherit_id="web.assets_frontend"> |
||||
|
<xpath expr="."> |
||||
|
<link |
||||
|
rel="stylesheet" |
||||
|
href="/privacy_consent/static/src/css/privacy_consent.scss" |
||||
|
/> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
</data> |
@ -1,91 +0,0 @@ |
|||||
====================== |
|
||||
Privacy Partner Report |
|
||||
====================== |
|
||||
|
|
||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
||||
!! This file is generated by oca-gen-addon-readme !! |
|
||||
!! changes will be overwritten. !! |
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
||||
|
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png |
|
||||
:target: https://odoo-community.org/page/development-status |
|
||||
:alt: Beta |
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png |
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|
||||
:alt: License: AGPL-3 |
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdata--protection-lightgray.png?logo=github |
|
||||
:target: https://github.com/OCA/data-protection/tree/11.0/privacy_partner_report |
|
||||
:alt: OCA/data-protection |
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
|
||||
:target: https://translation.odoo-community.org/projects/data-protection-11-0/data-protection-11-0-privacy_partner_report |
|
||||
:alt: Translate me on Weblate |
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png |
|
||||
:target: https://runbot.odoo-community.org/runbot/263/11.0 |
|
||||
:alt: Try me on Runbot |
|
||||
|
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5| |
|
||||
|
|
||||
This module helps a company to identify all the transactions that a specific |
|
||||
partner is involved in, with the possibility to export the associated data. |
|
||||
|
|
||||
**Table of contents** |
|
||||
|
|
||||
.. contents:: |
|
||||
:local: |
|
||||
|
|
||||
Usage |
|
||||
===== |
|
||||
|
|
||||
To use this module, you need to: |
|
||||
|
|
||||
#. Go to menu of ``Privacy > Reports > Partner Report``. |
|
||||
#. Select a partner, and then wait some seconds until a list of models appear. |
|
||||
#. Click on ``Export XLSX``. |
|
||||
|
|
||||
Bug Tracker |
|
||||
=========== |
|
||||
|
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/data-protection/issues>`_. |
|
||||
In case of trouble, please check there if your issue has already been reported. |
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed |
|
||||
`feedback <https://github.com/OCA/data-protection/issues/new?body=module:%20privacy_partner_report%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
|
||||
|
|
||||
Do not contact contributors directly about support or help with technical issues. |
|
||||
|
|
||||
Credits |
|
||||
======= |
|
||||
|
|
||||
Authors |
|
||||
~~~~~~~ |
|
||||
|
|
||||
* Eficent |
|
||||
|
|
||||
Contributors |
|
||||
~~~~~~~~~~~~ |
|
||||
|
|
||||
* Miquel Raïch <miquel.raich@eficent.com> |
|
||||
|
|
||||
Maintainers |
|
||||
~~~~~~~~~~~ |
|
||||
|
|
||||
This module is maintained by the OCA. |
|
||||
|
|
||||
.. image:: https://odoo-community.org/logo.png |
|
||||
:alt: Odoo Community Association |
|
||||
:target: https://odoo-community.org |
|
||||
|
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|
||||
mission is to support the collaborative development of Odoo features and |
|
||||
promote its widespread use. |
|
||||
|
|
||||
.. |maintainer-mreficent| image:: https://github.com/mreficent.png?size=40px |
|
||||
:target: https://github.com/mreficent |
|
||||
:alt: mreficent |
|
||||
|
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: |
|
||||
|
|
||||
|maintainer-mreficent| |
|
||||
|
|
||||
This module is part of the `OCA/data-protection <https://github.com/OCA/data-protection/tree/11.0/privacy_partner_report>`_ project on GitHub. |
|
||||
|
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
|
@ -1,2 +0,0 @@ |
|||||
from . import report |
|
||||
from . import wizard |
|
@ -1,20 +0,0 @@ |
|||||
# 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': '11.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'], |
|
||||
} |
|
@ -1,174 +0,0 @@ |
|||||
# Translation of Odoo Server. |
|
||||
# This file contains the translation of the following modules: |
|
||||
# * privacy_partner_report |
|
||||
# |
|
||||
msgid "" |
|
||||
msgstr "" |
|
||||
"Project-Id-Version: Odoo Server 11.0\n" |
|
||||
"Report-Msgid-Bugs-To: \n" |
|
||||
"PO-Revision-Date: 2019-04-26 13:16+0000\n" |
|
||||
"Last-Translator: dw3gn3r <denise.wegner@initos.com>\n" |
|
||||
"Language-Team: none\n" |
|
||||
"Language: de\n" |
|
||||
"MIME-Version: 1.0\n" |
|
||||
"Content-Type: text/plain; charset=UTF-8\n" |
|
||||
"Content-Transfer-Encoding: \n" |
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n" |
|
||||
"X-Generator: Weblate 3.5.1\n" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "<span>Select a company</span><br/>" |
|
||||
msgstr "<span>Wählen Sie eine Firma</span><br/>" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "<span>Select a partner</span><br/>" |
|
||||
msgstr "<span>Wählen Sie einen Partner</span><br/>" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_company_id |
|
||||
msgid "Company" |
|
||||
msgstr "Unternehmen" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_create_uid |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_create_uid |
|
||||
msgid "Created by" |
|
||||
msgstr "Erstellt von" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_create_date |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_create_date |
|
||||
msgid "Created on" |
|
||||
msgstr "Erstellt am" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_name |
|
||||
msgid "Database Table" |
|
||||
msgstr "Datenbanktabelle" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_display_name |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_display_name |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx_display_name |
|
||||
msgid "Display Name" |
|
||||
msgstr "Anzeigename" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Export XLSX" |
|
||||
msgstr "XLSX exportieren" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:121 |
|
||||
#, python-format |
|
||||
msgid "Form content is missing, this report cannot be printed." |
|
||||
msgstr "Formularinhalt fehlt, dieser Bericht kann nicht gedruckt werden." |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_id |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_id |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx_id |
|
||||
msgid "ID" |
|
||||
msgstr "Kennung" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data___last_update |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report___last_update |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx___last_update |
|
||||
msgid "Last Modified on" |
|
||||
msgstr "Letzte Änderung am" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_write_uid |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_write_uid |
|
||||
msgid "Last Updated by" |
|
||||
msgstr "Zuletzt aktualisiert von" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_write_date |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_write_date |
|
||||
msgid "Last Updated on" |
|
||||
msgstr "Zuletzt aktualisiert am" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,help:privacy_partner_report.field_privacy_partner_data_res_ids |
|
||||
msgid "List of Related Document IDs" |
|
||||
msgstr "Vorlagen" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_model_id |
|
||||
msgid "Models" |
|
||||
msgstr "Vorlagen" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_table_ids |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Models with related partner data" |
|
||||
msgstr "Vorlagen mit zugehörigen Partnerdaten" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:66 |
|
||||
#, python-format |
|
||||
msgid "No data for this partner." |
|
||||
msgstr "Keine Daten zu diesem Partner gefunden." |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:125 |
|
||||
#, python-format |
|
||||
msgid "No provided partner." |
|
||||
msgstr "Kein unterstützter Partner." |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_count_rows |
|
||||
msgid "Number of lines" |
|
||||
msgstr "Anzahl der Zeilen" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_partner_id |
|
||||
msgid "Partner" |
|
||||
msgstr "Partner" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/report/privacy_partner_xlsx.py:31 |
|
||||
#, python-format |
|
||||
msgid "Partner Data" |
|
||||
msgstr "Partnerdaten" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.actions.act_window,name:privacy_partner_report.action_privacy_partner_menu |
|
||||
#: model:ir.ui.menu,name:privacy_partner_report.menu_privacy_report_privacy_report |
|
||||
msgid "Partner Report" |
|
||||
msgstr "Partnerbericht" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.actions.report,name:privacy_partner_report.report_partner_xlsx |
|
||||
#: model:ir.model,name:privacy_partner_report.model_privacy_partner_data |
|
||||
msgid "Privacy Partner Data" |
|
||||
msgstr "Datenschutz Partnerdaten" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model,name:privacy_partner_report.model_privacy_partner_report |
|
||||
msgid "Privacy Partner Report" |
|
||||
msgstr "Datenschutz Partnerbericht" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_res_ids |
|
||||
msgid "Related Document IDs" |
|
||||
msgstr "Zugehörige Dokumentenkennung" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Report Options" |
|
||||
msgstr "Berichtsoptionen" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_field_type |
|
||||
msgid "Type" |
|
||||
msgstr "Typ" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model,name:privacy_partner_report.model_report_privacy_partner_report_report_partner_xlsx |
|
||||
msgid "report.privacy_partner_report.report_partner_xlsx" |
|
||||
msgstr "oder" |
|
@ -1,174 +0,0 @@ |
|||||
# Translation of Odoo Server. |
|
||||
# This file contains the translation of the following modules: |
|
||||
# * privacy_partner_report |
|
||||
# |
|
||||
msgid "" |
|
||||
msgstr "" |
|
||||
"Project-Id-Version: Odoo Server 11.0\n" |
|
||||
"Report-Msgid-Bugs-To: \n" |
|
||||
"PO-Revision-Date: 2019-06-07 15:37+0000\n" |
|
||||
"Last-Translator: Sergio Zanchetta <primes2h@gmail.com>\n" |
|
||||
"Language-Team: none\n" |
|
||||
"Language: it\n" |
|
||||
"MIME-Version: 1.0\n" |
|
||||
"Content-Type: text/plain; charset=UTF-8\n" |
|
||||
"Content-Transfer-Encoding: \n" |
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n" |
|
||||
"X-Generator: Weblate 3.6.1\n" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "<span>Select a company</span><br/>" |
|
||||
msgstr "<span>Selezionare un'azienda</span><br/>" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "<span>Select a partner</span><br/>" |
|
||||
msgstr "<span>Selezionare un partner</span><br/>" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_company_id |
|
||||
msgid "Company" |
|
||||
msgstr "Azienda" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_create_uid |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_create_uid |
|
||||
msgid "Created by" |
|
||||
msgstr "Creato da" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_create_date |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_create_date |
|
||||
msgid "Created on" |
|
||||
msgstr "Creato il" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_name |
|
||||
msgid "Database Table" |
|
||||
msgstr "Tabella database" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_display_name |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_display_name |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx_display_name |
|
||||
msgid "Display Name" |
|
||||
msgstr "Nome visualizzato" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Export XLSX" |
|
||||
msgstr "Esporta XLSX" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:121 |
|
||||
#, python-format |
|
||||
msgid "Form content is missing, this report cannot be printed." |
|
||||
msgstr "Modulo senza contenuto, impossibile stampare il resoconto." |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_id |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_id |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx_id |
|
||||
msgid "ID" |
|
||||
msgstr "ID" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data___last_update |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report___last_update |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx___last_update |
|
||||
msgid "Last Modified on" |
|
||||
msgstr "Ultima modifica il" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_write_uid |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_write_uid |
|
||||
msgid "Last Updated by" |
|
||||
msgstr "Ultimo aggiornamento di" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_write_date |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_write_date |
|
||||
msgid "Last Updated on" |
|
||||
msgstr "Ultimo aggiornamento il" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,help:privacy_partner_report.field_privacy_partner_data_res_ids |
|
||||
msgid "List of Related Document IDs" |
|
||||
msgstr "Elenco ID dei documenti collegati" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_model_id |
|
||||
msgid "Models" |
|
||||
msgstr "Modelli" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_table_ids |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Models with related partner data" |
|
||||
msgstr "Modelli con dati del partner collegato" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:66 |
|
||||
#, python-format |
|
||||
msgid "No data for this partner." |
|
||||
msgstr "Nessun dato per questo partner." |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:125 |
|
||||
#, python-format |
|
||||
msgid "No provided partner." |
|
||||
msgstr "Nessun partner assegnato." |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_count_rows |
|
||||
msgid "Number of lines" |
|
||||
msgstr "Numero di righe" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_partner_id |
|
||||
msgid "Partner" |
|
||||
msgstr "Partner" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/report/privacy_partner_xlsx.py:31 |
|
||||
#, python-format |
|
||||
msgid "Partner Data" |
|
||||
msgstr "Dati partner" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.actions.act_window,name:privacy_partner_report.action_privacy_partner_menu |
|
||||
#: model:ir.ui.menu,name:privacy_partner_report.menu_privacy_report_privacy_report |
|
||||
msgid "Partner Report" |
|
||||
msgstr "Resoconto partner" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.actions.report,name:privacy_partner_report.report_partner_xlsx |
|
||||
#: model:ir.model,name:privacy_partner_report.model_privacy_partner_data |
|
||||
msgid "Privacy Partner Data" |
|
||||
msgstr "Dati privacy del partner" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model,name:privacy_partner_report.model_privacy_partner_report |
|
||||
msgid "Privacy Partner Report" |
|
||||
msgstr "Resoconto privacy del partner" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_res_ids |
|
||||
msgid "Related Document IDs" |
|
||||
msgstr "ID documenti collegati" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Report Options" |
|
||||
msgstr "Opzioni resoconto" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_field_type |
|
||||
msgid "Type" |
|
||||
msgstr "Tipo" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model,name:privacy_partner_report.model_report_privacy_partner_report_report_partner_xlsx |
|
||||
msgid "report.privacy_partner_report.report_partner_xlsx" |
|
||||
msgstr "report.privacy_partner_report.report_partner_xlsx" |
|
@ -1,172 +0,0 @@ |
|||||
# Translation of Odoo Server. |
|
||||
# This file contains the translation of the following modules: |
|
||||
# * privacy_partner_report |
|
||||
# |
|
||||
msgid "" |
|
||||
msgstr "" |
|
||||
"Project-Id-Version: Odoo Server 11.0\n" |
|
||||
"Report-Msgid-Bugs-To: \n" |
|
||||
"Last-Translator: <>\n" |
|
||||
"Language-Team: \n" |
|
||||
"MIME-Version: 1.0\n" |
|
||||
"Content-Type: text/plain; charset=UTF-8\n" |
|
||||
"Content-Transfer-Encoding: \n" |
|
||||
"Plural-Forms: \n" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "<span>Select a company</span><br/>" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "<span>Select a partner</span><br/>" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_company_id |
|
||||
msgid "Company" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_create_uid |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_create_uid |
|
||||
msgid "Created by" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_create_date |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_create_date |
|
||||
msgid "Created on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_name |
|
||||
msgid "Database Table" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_display_name |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_display_name |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx_display_name |
|
||||
msgid "Display Name" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Export XLSX" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:121 |
|
||||
#, python-format |
|
||||
msgid "Form content is missing, this report cannot be printed." |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_id |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_id |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx_id |
|
||||
msgid "ID" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data___last_update |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report___last_update |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_report_privacy_partner_report_report_partner_xlsx___last_update |
|
||||
msgid "Last Modified on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_write_uid |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_write_uid |
|
||||
msgid "Last Updated by" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_write_date |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_write_date |
|
||||
msgid "Last Updated on" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,help:privacy_partner_report.field_privacy_partner_data_res_ids |
|
||||
msgid "List of Related Document IDs" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_model_id |
|
||||
msgid "Models" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_table_ids |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Models with related partner data" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:66 |
|
||||
#, python-format |
|
||||
msgid "No data for this partner." |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/wizard/privacy_report_partner.py:125 |
|
||||
#, python-format |
|
||||
msgid "No provided partner." |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_count_rows |
|
||||
msgid "Number of lines" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_report_partner_id |
|
||||
msgid "Partner" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: code:addons/privacy_partner_report/report/privacy_partner_xlsx.py:31 |
|
||||
#, python-format |
|
||||
msgid "Partner Data" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.actions.act_window,name:privacy_partner_report.action_privacy_partner_menu |
|
||||
#: model:ir.ui.menu,name:privacy_partner_report.menu_privacy_report_privacy_report |
|
||||
msgid "Partner Report" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.actions.report,name:privacy_partner_report.report_partner_xlsx |
|
||||
#: model:ir.model,name:privacy_partner_report.model_privacy_partner_data |
|
||||
msgid "Privacy Partner Data" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model,name:privacy_partner_report.model_privacy_partner_report |
|
||||
msgid "Privacy Partner Report" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_res_ids |
|
||||
msgid "Related Document IDs" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.ui.view,arch_db:privacy_partner_report.privacy_partner_report_wizard |
|
||||
msgid "Report Options" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model.fields,field_description:privacy_partner_report.field_privacy_partner_data_field_type |
|
||||
msgid "Type" |
|
||||
msgstr "" |
|
||||
|
|
||||
#. module: privacy_partner_report |
|
||||
#: model:ir.model,name:privacy_partner_report.model_report_privacy_partner_report_report_partner_xlsx |
|
||||
msgid "report.privacy_partner_report.report_partner_xlsx" |
|
||||
msgstr "" |
|
||||
|
|
@ -1 +0,0 @@ |
|||||
* Miquel Raïch <miquel.raich@eficent.com> |
|
@ -1,2 +0,0 @@ |
|||||
This module helps a company to identify all the transactions that a specific |
|
||||
partner is involved in, with the possibility to export the associated data. |
|
@ -1,5 +0,0 @@ |
|||||
To use this module, you need to: |
|
||||
|
|
||||
#. Go to menu of ``Privacy > Reports > Partner Report``. |
|
||||
#. Select a partner, and then wait some seconds until a list of models appear. |
|
||||
#. Click on ``Export XLSX``. |
|
@ -1 +0,0 @@ |
|||||
from . import privacy_partner_xlsx |
|
@ -1,83 +0,0 @@ |
|||||
# Copyright 2018 Eficent Business and IT Consulting Services S.L. |
|
||||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html |
|
||||
|
|
||||
import logging |
|
||||
from odoo import models |
|
||||
from odoo.tools.translate import _ |
|
||||
|
|
||||
_logger = logging.getLogger(__name__) |
|
||||
|
|
||||
|
|
||||
class ReportPartnerXlsx(models.AbstractModel): |
|
||||
_name = 'report.privacy_partner_report.report_partner_xlsx' |
|
||||
_inherit = 'report.report_xlsx.abstract' |
|
||||
|
|
||||
def _search_longest_row(self, tables): |
|
||||
res = 0 |
|
||||
for table in tables: |
|
||||
for model in tables[table]: |
|
||||
if len(tables[table][model]) > 0: |
|
||||
if len(tables[table][model][0]) > res: |
|
||||
res = len(tables[table][model][0]) |
|
||||
return res |
|
||||
|
|
||||
def generate_xlsx_report(self, workbook, data, objects): |
|
||||
for o in objects: |
|
||||
report_data = o.compute_data_for_report(data) |
|
||||
partner = report_data['form'].get('partner_id', False) |
|
||||
partner = self.env['res.partner'].sudo().browse(partner[0]) |
|
||||
workbook.set_properties({ |
|
||||
'comments': 'Created with Python and XlsxWriter from Odoo'}) |
|
||||
sheet = workbook.add_worksheet(_('Partner Data')) |
|
||||
sheet.set_landscape() |
|
||||
sheet.fit_to_pages(1, 0) |
|
||||
sheet.set_zoom(75) |
|
||||
sheet.set_column(0, self._search_longest_row( |
|
||||
report_data['tables']), 25) |
|
||||
title_style = workbook.add_format( |
|
||||
{'bold': True, 'bg_color': '#FFFFCC', 'border': 2}) |
|
||||
sheet.set_row(0, None, None, {'collapsed': 1}) |
|
||||
sheet.write_row(1, 0, ["Partner: " + partner.display_name], |
|
||||
title_style) |
|
||||
i = 3 |
|
||||
first_row = i+2 |
|
||||
for table in sorted(report_data['tables'].keys()): |
|
||||
for model in sorted(report_data['tables'][table].keys()): |
|
||||
rows = len(report_data['tables'][table][model]) |
|
||||
if rows: |
|
||||
style = workbook.add_format() |
|
||||
style.set_bold(True) |
|
||||
style.set_border(2) |
|
||||
sheet.write_row(i, 0, [model], style) |
|
||||
i += 1 |
|
||||
j = 0 |
|
||||
for column in report_data['tables'][table][model][0]: |
|
||||
style = workbook.add_format() |
|
||||
style.set_bold(True) |
|
||||
if j == 0: |
|
||||
style.set_left(1) |
|
||||
if j == len(report_data['tables'][ |
|
||||
table][model][0]) - 1: |
|
||||
style.set_right(1) |
|
||||
style.set_top(1) |
|
||||
style.set_bottom(1) |
|
||||
sheet.write_row(i, j, [column], style) |
|
||||
j += 1 |
|
||||
for row in report_data['tables'][table][model]: |
|
||||
i += 1 |
|
||||
j = 0 |
|
||||
for column in row: |
|
||||
style = workbook.add_format() |
|
||||
if j == 0: |
|
||||
style.set_left(1) |
|
||||
if j == len(row) - 1: |
|
||||
style.set_right(1) |
|
||||
if i == rows + first_row - 1: |
|
||||
style.set_bottom(1) |
|
||||
if row[column]: |
|
||||
sheet.write_row(i, j, [row[column]], style) |
|
||||
else: |
|
||||
sheet.write_row(i, j, [''], style) |
|
||||
j += 1 |
|
||||
i += 2 |
|
||||
first_row = i+2 |
|
Before Width: 128 | Height: 128 | Size: 2.1 KiB |
@ -1,432 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8" ?> |
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
||||
<head> |
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" /> |
|
||||
<title>Privacy Partner Report</title> |
|
||||
<style type="text/css"> |
|
||||
|
|
||||
/* |
|
||||
:Author: David Goodger (goodger@python.org) |
|
||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $ |
|
||||
:Copyright: This stylesheet has been placed in the public domain. |
|
||||
|
|
||||
Default cascading style sheet for the HTML output of Docutils. |
|
||||
|
|
||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to |
|
||||
customize this style sheet. |
|
||||
*/ |
|
||||
|
|
||||
/* used to remove borders from tables and images */ |
|
||||
.borderless, table.borderless td, table.borderless th { |
|
||||
border: 0 } |
|
||||
|
|
||||
table.borderless td, table.borderless th { |
|
||||
/* Override padding for "table.docutils td" with "! important". |
|
||||
The right padding separates the table cells. */ |
|
||||
padding: 0 0.5em 0 0 ! important } |
|
||||
|
|
||||
.first { |
|
||||
/* Override more specific margin styles with "! important". */ |
|
||||
margin-top: 0 ! important } |
|
||||
|
|
||||
.last, .with-subtitle { |
|
||||
margin-bottom: 0 ! important } |
|
||||
|
|
||||
.hidden { |
|
||||
display: none } |
|
||||
|
|
||||
.subscript { |
|
||||
vertical-align: sub; |
|
||||
font-size: smaller } |
|
||||
|
|
||||
.superscript { |
|
||||
vertical-align: super; |
|
||||
font-size: smaller } |
|
||||
|
|
||||
a.toc-backref { |
|
||||
text-decoration: none ; |
|
||||
color: black } |
|
||||
|
|
||||
blockquote.epigraph { |
|
||||
margin: 2em 5em ; } |
|
||||
|
|
||||
dl.docutils dd { |
|
||||
margin-bottom: 0.5em } |
|
||||
|
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { |
|
||||
overflow: hidden; |
|
||||
} |
|
||||
|
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms |
|
||||
dl.docutils dt { |
|
||||
font-weight: bold } |
|
||||
*/ |
|
||||
|
|
||||
div.abstract { |
|
||||
margin: 2em 5em } |
|
||||
|
|
||||
div.abstract p.topic-title { |
|
||||
font-weight: bold ; |
|
||||
text-align: center } |
|
||||
|
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error, |
|
||||
div.hint, div.important, div.note, div.tip, div.warning { |
|
||||
margin: 2em ; |
|
||||
border: medium outset ; |
|
||||
padding: 1em } |
|
||||
|
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title, |
|
||||
div.important p.admonition-title, div.note p.admonition-title, |
|
||||
div.tip p.admonition-title { |
|
||||
font-weight: bold ; |
|
||||
font-family: sans-serif } |
|
||||
|
|
||||
div.attention p.admonition-title, div.caution p.admonition-title, |
|
||||
div.danger p.admonition-title, div.error p.admonition-title, |
|
||||
div.warning p.admonition-title, .code .error { |
|
||||
color: red ; |
|
||||
font-weight: bold ; |
|
||||
font-family: sans-serif } |
|
||||
|
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in |
|
||||
compound paragraphs. |
|
||||
div.compound .compound-first, div.compound .compound-middle { |
|
||||
margin-bottom: 0.5em } |
|
||||
|
|
||||
div.compound .compound-last, div.compound .compound-middle { |
|
||||
margin-top: 0.5em } |
|
||||
*/ |
|
||||
|
|
||||
div.dedication { |
|
||||
margin: 2em 5em ; |
|
||||
text-align: center ; |
|
||||
font-style: italic } |
|
||||
|
|
||||
div.dedication p.topic-title { |
|
||||
font-weight: bold ; |
|
||||
font-style: normal } |
|
||||
|
|
||||
div.figure { |
|
||||
margin-left: 2em ; |
|
||||
margin-right: 2em } |
|
||||
|
|
||||
div.footer, div.header { |
|
||||
clear: both; |
|
||||
font-size: smaller } |
|
||||
|
|
||||
div.line-block { |
|
||||
display: block ; |
|
||||
margin-top: 1em ; |
|
||||
margin-bottom: 1em } |
|
||||
|
|
||||
div.line-block div.line-block { |
|
||||
margin-top: 0 ; |
|
||||
margin-bottom: 0 ; |
|
||||
margin-left: 1.5em } |
|
||||
|
|
||||
div.sidebar { |
|
||||
margin: 0 0 0.5em 1em ; |
|
||||
border: medium outset ; |
|
||||
padding: 1em ; |
|
||||
background-color: #ffffee ; |
|
||||
width: 40% ; |
|
||||
float: right ; |
|
||||
clear: right } |
|
||||
|
|
||||
div.sidebar p.rubric { |
|
||||
font-family: sans-serif ; |
|
||||
font-size: medium } |
|
||||
|
|
||||
div.system-messages { |
|
||||
margin: 5em } |
|
||||
|
|
||||
div.system-messages h1 { |
|
||||
color: red } |
|
||||
|
|
||||
div.system-message { |
|
||||
border: medium outset ; |
|
||||
padding: 1em } |
|
||||
|
|
||||
div.system-message p.system-message-title { |
|
||||
color: red ; |
|
||||
font-weight: bold } |
|
||||
|
|
||||
div.topic { |
|
||||
margin: 2em } |
|
||||
|
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
|
||||
margin-top: 0.4em } |
|
||||
|
|
||||
h1.title { |
|
||||
text-align: center } |
|
||||
|
|
||||
h2.subtitle { |
|
||||
text-align: center } |
|
||||
|
|
||||
hr.docutils { |
|
||||
width: 75% } |
|
||||
|
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left { |
|
||||
clear: left ; |
|
||||
float: left ; |
|
||||
margin-right: 1em } |
|
||||
|
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right { |
|
||||
clear: right ; |
|
||||
float: right ; |
|
||||
margin-left: 1em } |
|
||||
|
|
||||
img.align-center, .figure.align-center, object.align-center { |
|
||||
display: block; |
|
||||
margin-left: auto; |
|
||||
margin-right: auto; |
|
||||
} |
|
||||
|
|
||||
table.align-center { |
|
||||
margin-left: auto; |
|
||||
margin-right: auto; |
|
||||
} |
|
||||
|
|
||||
.align-left { |
|
||||
text-align: left } |
|
||||
|
|
||||
.align-center { |
|
||||
clear: both ; |
|
||||
text-align: center } |
|
||||
|
|
||||
.align-right { |
|
||||
text-align: right } |
|
||||
|
|
||||
/* reset inner alignment in figures */ |
|
||||
div.align-right { |
|
||||
text-align: inherit } |
|
||||
|
|
||||
/* div.align-center * { */ |
|
||||
/* text-align: left } */ |
|
||||
|
|
||||
.align-top { |
|
||||
vertical-align: top } |
|
||||
|
|
||||
.align-middle { |
|
||||
vertical-align: middle } |
|
||||
|
|
||||
.align-bottom { |
|
||||
vertical-align: bottom } |
|
||||
|
|
||||
ol.simple, ul.simple { |
|
||||
margin-bottom: 1em } |
|
||||
|
|
||||
ol.arabic { |
|
||||
list-style: decimal } |
|
||||
|
|
||||
ol.loweralpha { |
|
||||
list-style: lower-alpha } |
|
||||
|
|
||||
ol.upperalpha { |
|
||||
list-style: upper-alpha } |
|
||||
|
|
||||
ol.lowerroman { |
|
||||
list-style: lower-roman } |
|
||||
|
|
||||
ol.upperroman { |
|
||||
list-style: upper-roman } |
|
||||
|
|
||||
p.attribution { |
|
||||
text-align: right ; |
|
||||
margin-left: 50% } |
|
||||
|
|
||||
p.caption { |
|
||||
font-style: italic } |
|
||||
|
|
||||
p.credits { |
|
||||
font-style: italic ; |
|
||||
font-size: smaller } |
|
||||
|
|
||||
p.label { |
|
||||
white-space: nowrap } |
|
||||
|
|
||||
p.rubric { |
|
||||
font-weight: bold ; |
|
||||
font-size: larger ; |
|
||||
color: maroon ; |
|
||||
text-align: center } |
|
||||
|
|
||||
p.sidebar-title { |
|
||||
font-family: sans-serif ; |
|
||||
font-weight: bold ; |
|
||||
font-size: larger } |
|
||||
|
|
||||
p.sidebar-subtitle { |
|
||||
font-family: sans-serif ; |
|
||||
font-weight: bold } |
|
||||
|
|
||||
p.topic-title { |
|
||||
font-weight: bold } |
|
||||
|
|
||||
pre.address { |
|
||||
margin-bottom: 0 ; |
|
||||
margin-top: 0 ; |
|
||||
font: inherit } |
|
||||
|
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code { |
|
||||
margin-left: 2em ; |
|
||||
margin-right: 2em } |
|
||||
|
|
||||
pre.code .ln { color: grey; } /* line numbers */ |
|
||||
pre.code, code { background-color: #eeeeee } |
|
||||
pre.code .comment, code .comment { color: #5C6576 } |
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } |
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 } |
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 } |
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1} |
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289} |
|
||||
|
|
||||
span.classifier { |
|
||||
font-family: sans-serif ; |
|
||||
font-style: oblique } |
|
||||
|
|
||||
span.classifier-delimiter { |
|
||||
font-family: sans-serif ; |
|
||||
font-weight: bold } |
|
||||
|
|
||||
span.interpreted { |
|
||||
font-family: sans-serif } |
|
||||
|
|
||||
span.option { |
|
||||
white-space: nowrap } |
|
||||
|
|
||||
span.pre { |
|
||||
white-space: pre } |
|
||||
|
|
||||
span.problematic { |
|
||||
color: red } |
|
||||
|
|
||||
span.section-subtitle { |
|
||||
/* font-size relative to parent (h1..h6 element) */ |
|
||||
font-size: 80% } |
|
||||
|
|
||||
table.citation { |
|
||||
border-left: solid 1px gray; |
|
||||
margin-left: 1px } |
|
||||
|
|
||||
table.docinfo { |
|
||||
margin: 2em 4em } |
|
||||
|
|
||||
table.docutils { |
|
||||
margin-top: 0.5em ; |
|
||||
margin-bottom: 0.5em } |
|
||||
|
|
||||
table.footnote { |
|
||||
border-left: solid 1px black; |
|
||||
margin-left: 1px } |
|
||||
|
|
||||
table.docutils td, table.docutils th, |
|
||||
table.docinfo td, table.docinfo th { |
|
||||
padding-left: 0.5em ; |
|
||||
padding-right: 0.5em ; |
|
||||
vertical-align: top } |
|
||||
|
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name { |
|
||||
font-weight: bold ; |
|
||||
text-align: left ; |
|
||||
white-space: nowrap ; |
|
||||
padding-left: 0 } |
|
||||
|
|
||||
/* "booktabs" style (no vertical lines) */ |
|
||||
table.docutils.booktabs { |
|
||||
border: 0px; |
|
||||
border-top: 2px solid; |
|
||||
border-bottom: 2px solid; |
|
||||
border-collapse: collapse; |
|
||||
} |
|
||||
table.docutils.booktabs * { |
|
||||
border: 0px; |
|
||||
} |
|
||||
table.docutils.booktabs th { |
|
||||
border-bottom: thin solid; |
|
||||
text-align: left; |
|
||||
} |
|
||||
|
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
|
||||
font-size: 100% } |
|
||||
|
|
||||
ul.auto-toc { |
|
||||
list-style-type: none } |
|
||||
|
|
||||
</style> |
|
||||
</head> |
|
||||
<body> |
|
||||
<div class="document" id="privacy-partner-report"> |
|
||||
<h1 class="title">Privacy Partner Report</h1> |
|
||||
|
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
||||
!! This file is generated by oca-gen-addon-readme !! |
|
||||
!! changes will be overwritten. !! |
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> |
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/data-protection/tree/11.0/privacy_partner_report"><img alt="OCA/data-protection" src="https://img.shields.io/badge/github-OCA%2Fdata--protection-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/data-protection-11-0/data-protection-11-0-privacy_partner_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/263/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> |
|
||||
<p>This module helps a company to identify all the transactions that a specific |
|
||||
partner is involved in, with the possibility to export the associated data.</p> |
|
||||
<p><strong>Table of contents</strong></p> |
|
||||
<div class="contents local topic" id="contents"> |
|
||||
<ul class="simple"> |
|
||||
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li> |
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> |
|
||||
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> |
|
||||
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li> |
|
||||
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> |
|
||||
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> |
|
||||
</ul> |
|
||||
</li> |
|
||||
</ul> |
|
||||
</div> |
|
||||
<div class="section" id="usage"> |
|
||||
<h1><a class="toc-backref" href="#id1">Usage</a></h1> |
|
||||
<p>To use this module, you need to:</p> |
|
||||
<ol class="arabic simple"> |
|
||||
<li>Go to menu of <tt class="docutils literal">Privacy > Reports > Partner Report</tt>.</li> |
|
||||
<li>Select a partner, and then wait some seconds until a list of models appear.</li> |
|
||||
<li>Click on <tt class="docutils literal">Export XLSX</tt>.</li> |
|
||||
</ol> |
|
||||
</div> |
|
||||
<div class="section" id="bug-tracker"> |
|
||||
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1> |
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/data-protection/issues">GitHub Issues</a>. |
|
||||
In case of trouble, please check there if your issue has already been reported. |
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed |
|
||||
<a class="reference external" href="https://github.com/OCA/data-protection/issues/new?body=module:%20privacy_partner_report%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> |
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p> |
|
||||
</div> |
|
||||
<div class="section" id="credits"> |
|
||||
<h1><a class="toc-backref" href="#id3">Credits</a></h1> |
|
||||
<div class="section" id="authors"> |
|
||||
<h2><a class="toc-backref" href="#id4">Authors</a></h2> |
|
||||
<ul class="simple"> |
|
||||
<li>Eficent</li> |
|
||||
</ul> |
|
||||
</div> |
|
||||
<div class="section" id="contributors"> |
|
||||
<h2><a class="toc-backref" href="#id5">Contributors</a></h2> |
|
||||
<ul class="simple"> |
|
||||
<li>Miquel Raïch <<a class="reference external" href="mailto:miquel.raich@eficent.com">miquel.raich@eficent.com</a>></li> |
|
||||
</ul> |
|
||||
</div> |
|
||||
<div class="section" id="maintainers"> |
|
||||
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2> |
|
||||
<p>This module is maintained by the OCA.</p> |
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> |
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose |
|
||||
mission is to support the collaborative development of Odoo features and |
|
||||
promote its widespread use.</p> |
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> |
|
||||
<p><a class="reference external" href="https://github.com/mreficent"><img alt="mreficent" src="https://github.com/mreficent.png?size=40px" /></a></p> |
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/data-protection/tree/11.0/privacy_partner_report">OCA/data-protection</a> project on GitHub.</p> |
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</body> |
|
||||
</html> |
|
@ -1,14 +0,0 @@ |
|||||
<?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> |
|
||||
|
|
||||
<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,12 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<odoo> |
|
||||
<report |
|
||||
id="report_partner_xlsx" |
|
||||
model="privacy.partner.report" |
|
||||
string="Privacy Partner Data" |
|
||||
report_type="xlsx" |
|
||||
name="privacy_partner_report.report_partner_xlsx" |
|
||||
file="privacy_partner_report" |
|
||||
attachment_use="False" |
|
||||
/> |
|
||||
</odoo> |
|
@ -1 +0,0 @@ |
|||||
from . import privacy_report_partner |
|
@ -1,253 +0,0 @@ |
|||||
# Copyright 2018 Eficent Business and IT Consulting Services S.L. |
|
||||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html |
|
||||
from odoo import api, fields, models, _ |
|
||||
from odoo.exceptions import UserError |
|
||||
import ast |
|
||||
|
|
||||
|
|
||||
class PrivacyPartnerReport(models.TransientModel): |
|
||||
_name = "privacy.partner.report" |
|
||||
_description = "Privacy Partner Report" |
|
||||
|
|
||||
company_id = fields.Many2one( |
|
||||
comodel_name='res.company', |
|
||||
string='Company', |
|
||||
required=True, |
|
||||
default=lambda self: self.env.user.company_id, |
|
||||
) |
|
||||
partner_id = fields.Many2one( |
|
||||
comodel_name='res.partner', |
|
||||
string='Partner', |
|
||||
required=True, |
|
||||
) |
|
||||
table_ids = fields.Many2many( |
|
||||
comodel_name='privacy.partner.data', |
|
||||
string='Models with related partner data', |
|
||||
) |
|
||||
|
|
||||
@api.onchange('partner_id') |
|
||||
def _onchange_partner_id(self): |
|
||||
if self.partner_id: |
|
||||
data = self._get_tables_from_partner(self.partner_id) |
|
||||
names = self._get_table_names(data) |
|
||||
tables = self.env['privacy.partner.data'] |
|
||||
for name in sorted(names): |
|
||||
vals = self._get_default_table( |
|
||||
name=name, |
|
||||
data=[t for t in data if t[0] == name and not t[5]], |
|
||||
) |
|
||||
if vals: |
|
||||
tables |= self.env['privacy.partner.data'].create(vals) |
|
||||
self.table_ids = tables |
|
||||
else: |
|
||||
self.table_ids = self.env['privacy.partner.data'] |
|
||||
return { |
|
||||
'domain': { |
|
||||
'table_ids': [ |
|
||||
('id', 'in', self.table_ids.ids)], |
|
||||
}, |
|
||||
} |
|
||||
|
|
||||
@api.onchange('company_id') |
|
||||
def _onchange_company_id(self): |
|
||||
if not self.company_id: |
|
||||
self.company_id = self.env.user.company_id |
|
||||
return { |
|
||||
'domain': { |
|
||||
'partner_id': [ |
|
||||
('company_id', 'in', [self.company_id.id, False])], |
|
||||
}, |
|
||||
} |
|
||||
|
|
||||
@api.multi |
|
||||
def button_export_xlsx(self): |
|
||||
self.ensure_one() |
|
||||
if not self.table_ids: |
|
||||
raise UserError(_('No data for this partner.')) |
|
||||
return self.check_report(xlsx_report=True) |
|
||||
|
|
||||
def _build_contexts(self, data): |
|
||||
result = {} |
|
||||
result['partner_id'] = data['form']['partner_id'][0] or False |
|
||||
result['company_id'] = data['form']['company_id'][0] or False |
|
||||
result['table_ids'] = 'table_ids' in data['form'] and \ |
|
||||
data['form']['table_ids'] or False |
|
||||
return result |
|
||||
|
|
||||
@staticmethod |
|
||||
def _transform_binary(binary): |
|
||||
# TODO: Implement if needed |
|
||||
return False |
|
||||
|
|
||||
def _clean_data(self, model, rows): |
|
||||
cleaned_rows = [] |
|
||||
for i, row in enumerate(rows): |
|
||||
cleaned_rows.append({}) |
|
||||
for key, value in row.items(): |
|
||||
label = self.env[model]._fields[key].string or key |
|
||||
if self.env[model]._fields[key].store: |
|
||||
if 'many2one' == self.env[model]._fields[key].type: |
|
||||
comodel = self.env[model]._fields[key].comodel_name |
|
||||
if value: |
|
||||
record = self.env[comodel].sudo().browse(value) |
|
||||
cleaned_rows[i][label] = record.display_name |
|
||||
else: |
|
||||
cleaned_rows[i][label] = rows[i][key] |
|
||||
elif 'binary' == self.env[model]._fields[key].type: |
|
||||
binary = self._transform_binary(rows[i][key]) |
|
||||
if binary: |
|
||||
cleaned_rows[i][label] = binary |
|
||||
elif '2many' not in self.env[model]._fields[key].type: |
|
||||
cleaned_rows[i][label] = rows[i][key] |
|
||||
return cleaned_rows |
|
||||
|
|
||||
@api.multi |
|
||||
def check_report(self, xlsx_report=False): |
|
||||
self.ensure_one() |
|
||||
data = {} |
|
||||
data['ids'] = self.env.context.get('active_ids', []) |
|
||||
data['model'] = self.env.context.get('active_model', 'ir.ui.menu') |
|
||||
data['form'] = self.read(['partner_id', 'company_id', 'table_ids'])[0] |
|
||||
used_context = self._build_contexts(data) |
|
||||
data['form']['id'] = str(data['form']['id']) |
|
||||
data['form']['used_context'] = dict( |
|
||||
used_context, lang=self.env.context.get('lang', 'en_US')) |
|
||||
return self._print_report(data=data, xlsx_report=xlsx_report) |
|
||||
|
|
||||
@api.multi |
|
||||
def compute_data_for_report(self, data): |
|
||||
if not data.get('form'): |
|
||||
raise UserError( |
|
||||
_("Form content is missing, this report cannot be printed.")) |
|
||||
partner = data['form'].get('partner_id', False) |
|
||||
if not partner: |
|
||||
raise UserError( |
|
||||
_("No provided partner.")) |
|
||||
partner = self.env['res.partner'].sudo().browse(partner[0]) |
|
||||
tables = data['form'].get('table_ids', False) |
|
||||
if tables: |
|
||||
tables = self.env['privacy.partner.data'].browse(tables) |
|
||||
tables = self._get_rows_from_tables(tables, partner) |
|
||||
data.update({'tables': tables, }) |
|
||||
return data |
|
||||
|
|
||||
def _exclude_column(self, model, column): |
|
||||
|
|
||||
# https://github.com/odoo/odoo/issues/24927 |
|
||||
if model in ('mail.compose.message', 'survey.mail.compose.message'): |
|
||||
if column in ('needaction_partner_ids', 'starred_partner_ids'): |
|
||||
return True |
|
||||
# feel free to add more specific cases meanwhile the issue is not fixed |
|
||||
|
|
||||
return False |
|
||||
|
|
||||
def _get_default_table(self, name, data): |
|
||||
if data: |
|
||||
field_type = data[0][4] |
|
||||
res = self.env[data[0][1]] |
|
||||
for t in data: |
|
||||
res |= self.env[t[1]].sudo().browse(t[3]) |
|
||||
if res: |
|
||||
values = { |
|
||||
'name': name, |
|
||||
'model_id': self.env['ir.model'].sudo().search( |
|
||||
[('model', '=', res._name)]).id, |
|
||||
'count_rows': len(res.ids), |
|
||||
'field_type': field_type, |
|
||||
'res_ids': res.ids, |
|
||||
} |
|
||||
return values |
|
||||
return {} |
|
||||
|
|
||||
def _get_model_from_table(self, table, partner): |
|
||||
new_tables = {} |
|
||||
for model in table.model_id: |
|
||||
rows = self._get_rows_from_model(model, partner) |
|
||||
new_tables[model.display_name] = rows |
|
||||
return new_tables |
|
||||
|
|
||||
def _get_rows_from_model(self, model, partner): |
|
||||
lines = self.env[model.model] |
|
||||
columns = [k for k, v in self.env[model.model]._fields.items() |
|
||||
if v.comodel_name == 'res.partner' and |
|
||||
v.store and not self._exclude_column(model.model, k)] |
|
||||
for column in columns: |
|
||||
lines |= self.env[model.model].sudo().search( |
|
||||
[(column, '=', partner.id)]) |
|
||||
rows = lines.sudo().read(load=False) |
|
||||
rows = self._clean_data(model.model, rows) |
|
||||
return rows |
|
||||
|
|
||||
def _get_rows_from_tables(self, tables, partner): |
|
||||
new_tables = {} |
|
||||
for table in tables: |
|
||||
data_table = self._get_model_from_table(table, partner) |
|
||||
new_tables[str(table.name)] = data_table |
|
||||
return new_tables |
|
||||
|
|
||||
def _get_table_names(self, data): |
|
||||
names = [] |
|
||||
for t in data: |
|
||||
if t[3] and not t[5] and t[0] not in names: |
|
||||
names.append(t[0]) |
|
||||
return names |
|
||||
|
|
||||
def _get_tables_from_partner(self, partner): |
|
||||
tables = [t[0] for t in [ |
|
||||
[[self.env[m]._table, m, k, self.env[m].sudo().search( |
|
||||
[(k, '=', partner.id)]).ids, v.type, self.env[m]._transient] |
|
||||
for k, v in self.env[m]._fields.items() |
|
||||
if v.comodel_name == 'res.partner' and self.env[m]._auto and |
|
||||
v.store and not self._exclude_column(m, k)] |
|
||||
for m in [x for x in self.env.registry.keys()]] if t] |
|
||||
for i, t in enumerate(tables): |
|
||||
if t[4] == 'many2many': |
|
||||
if t[3]: |
|
||||
relation = self.env[t[1]]._fields[t[2]].relation |
|
||||
if relation: |
|
||||
tables[i][0] = relation |
|
||||
return tables |
|
||||
|
|
||||
def _print_report(self, data, xlsx_report=False): |
|
||||
records = self.env[data['model']].sudo().browse(data.get('ids', [])) |
|
||||
if xlsx_report: |
|
||||
return self.env.ref('privacy_partner_report.report_partner_xlsx').\ |
|
||||
with_context(landscape=True).report_action( |
|
||||
records, data=data) |
|
||||
|
|
||||
|
|
||||
class PrivacyPartnerData(models.TransientModel): |
|
||||
_name = "privacy.partner.data" |
|
||||
_description = "Privacy Partner Data" |
|
||||
|
|
||||
name = fields.Char( |
|
||||
string='Database Table', |
|
||||
) |
|
||||
model_id = fields.Many2one( |
|
||||
comodel_name='ir.model', |
|
||||
ondelete='cascade', |
|
||||
string='Models', |
|
||||
) |
|
||||
field_type = fields.Char( |
|
||||
string="Type", oldname='type', |
|
||||
) |
|
||||
count_rows = fields.Integer( |
|
||||
default=0, |
|
||||
string='Number of lines', |
|
||||
) |
|
||||
res_ids = fields.Char('Related Document IDs', index=True, |
|
||||
help='List of Related Document IDs') |
|
||||
|
|
||||
@api.multi |
|
||||
def action_view_records(self): |
|
||||
self.ensure_one() |
|
||||
response = { |
|
||||
'name': self.model_id.display_name, |
|
||||
'type': 'ir.actions.act_window', |
|
||||
'res_model': self.model_id.model, |
|
||||
'view_mode': 'tree,form', |
|
||||
'domain': [('id', 'in', ast.literal_eval(self.res_ids))], |
|
||||
'target': 'current', |
|
||||
'context': {'delete': True}, |
|
||||
} |
|
||||
return response |
|
@ -1,51 +0,0 @@ |
|||||
<?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> |
|
||||
|
|
||||
<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"/> |
|
||||
</header> |
|
||||
<group groups="base.group_multi_company"> |
|
||||
<group> |
|
||||
<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])]"/> |
|
||||
</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"> |
|
||||
<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')]}" /> |
|
||||
</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_type">form</field> |
|
||||
<field name="view_mode">form</field> |
|
||||
<field name="view_id" ref="privacy_partner_report_wizard"/> |
|
||||
<field name="target">current</field> |
|
||||
</record> |
|
||||
|
|
||||
</odoo> |
|
@ -1 +1 @@ |
|||||
11.0.20211016.0 |
|
||||
|
13.0.20211016.0 |
@ -1,2 +0,0 @@ |
|||||
[bdist_wheel] |
|
||||
universal=1 |
|
@ -1 +0,0 @@ |
|||||
../../../../contact_search_form |
|
@ -1,2 +0,0 @@ |
|||||
[bdist_wheel] |
|
||||
universal=1 |
|
@ -1,6 +0,0 @@ |
|||||
import setuptools |
|
||||
|
|
||||
setuptools.setup( |
|
||||
setup_requires=['setuptools-odoo'], |
|
||||
odoo_addon=True, |
|
||||
) |
|
@ -1,2 +0,0 @@ |
|||||
[bdist_wheel] |
|
||||
universal=1 |
|
@ -1,2 +0,0 @@ |
|||||
[bdist_wheel] |
|
||||
universal=1 |
|
@ -1 +0,0 @@ |
|||||
../../../../privacy_partner_report |
|
@ -1,2 +0,0 @@ |
|||||
[bdist_wheel] |
|
||||
universal=1 |
|
@ -1,6 +0,0 @@ |
|||||
import setuptools |
|
||||
|
|
||||
setuptools.setup( |
|
||||
setup_requires=['setuptools-odoo'], |
|
||||
odoo_addon=True, |
|
||||
) |
|
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue