diff --git a/itis_gdpr_extension/__init__.py b/contact_search_form/__init__.py similarity index 100% rename from itis_gdpr_extension/__init__.py rename to contact_search_form/__init__.py diff --git a/contact_search_form/__manifest__.py b/contact_search_form/__manifest__.py new file mode 100755 index 0000000..1d0bf61 --- /dev/null +++ b/contact_search_form/__manifest__.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- + +############################################################################## +# +# IT IS AG, software solutions +# Copyright (C) 2015-TODAY IT IS AG (). +# +# +# The software works in conjunction with other software distributed from +# other parties which is licensed under the GNU Lesser General Public +# License (LGPL). +# Those pieces are not owned by IT IS AG and therefore not under the terms +# of the IT IS EULA, and WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with IT IS Odoo Textblock. If not, see +# +############################################################################## + +{ + 'name': "Contact Search Form", + + 'summary': """ + + View for Data Protection Officer (DPO) to look up Customer Data. Odoo models can be searched for specified string. + + """, + + 'description': """ + + View for Data Protection Officer (DPO) to look up Customer Data. Odoo models can be searched for specified string. + To access contact search in contacts view, user must activate 'Data Protection Officer' checkbox in Technical Settings. + + """, + + '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', + 'category': 'Contacts', + 'depends': ['base', + 'contacts', + #'website_crm', + ], + + 'data': [ + 'security/gdpr_security.xml', + 'security/ir.model.access.csv', + 'views/contact_search.xml', + ], + +} \ No newline at end of file diff --git a/contact_search_form/i18n/de.po b/contact_search_form/i18n/de.po new file mode 100644 index 0000000..f60a20b --- /dev/null +++ b/contact_search_form/i18n/de.po @@ -0,0 +1,68 @@ +# 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" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: de_DE\n" +"X-Generator: Poedit 1.5.4\n" + +#. module: contact_search_form +#: model:ir.ui.menu,name:contact_search_form.menu_customer_info +msgid "Contact Search" +msgstr "Kontakt Suche" + +#. 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.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.ui.view,arch_db:contact_search_form.search_line_tree_view_itis +msgid "Search Results" +msgstr "Suchergebnisse" + +#. module: contact_search_form +#: 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.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" diff --git a/contact_search_form/i18n/en_US.po b/contact_search_form/i18n/en_US.po new file mode 100644 index 0000000..6d10846 --- /dev/null +++ b/contact_search_form/i18n/en_US.po @@ -0,0 +1,68 @@ +# 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" +"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 +msgid "Contact Search" +msgstr "Contact Search" + +#. 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.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.ui.view,arch_db:contact_search_form.search_line_tree_view_itis +msgid "Search Results" +msgstr "Search Results" + +#. module: contact_search_form +#: 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.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" + diff --git a/contact_search_form/models/__init__.py b/contact_search_form/models/__init__.py new file mode 100755 index 0000000..c2573e5 --- /dev/null +++ b/contact_search_form/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import contact_search \ No newline at end of file diff --git a/itis_gdpr_extension/models/models.py b/contact_search_form/models/contact_search.py similarity index 88% rename from itis_gdpr_extension/models/models.py rename to contact_search_form/models/contact_search.py index 8879122..7e8666d 100755 --- a/itis_gdpr_extension/models/models.py +++ b/contact_search_form/models/contact_search.py @@ -78,9 +78,9 @@ class ItisDpoView(models.Model): raise UserError(_("No record found with "+self.name+".")) - def _search_tables(self): - user_id = self.env['res.users'].browse('email', '=', self.email) - # field user_info could be an array containg the fields we want to display... - partner_id = self.env['res.partner'].browse('email', '=', self.email) - crm_id = self.env['crm.lead'].browse('email', '=', self.email) - mm_id = self.env['mail.mass_mailing'].browse('email', '=', self.email) \ No newline at end of file + # def _search_tables(self): + # user_id = self.env['res.users'].browse('email', '=', self.email) + # # field user_info could be an array containg the fields we want to display... + # partner_id = self.env['res.partner'].browse('email', '=', self.email) + # crm_id = self.env['crm.lead'].browse('email', '=', self.email) + # mm_id = self.env['mail.mass_mailing'].browse('email', '=', self.email) \ No newline at end of file diff --git a/itis_gdpr_extension/security/gdpr_security.xml b/contact_search_form/security/gdpr_security.xml similarity index 50% rename from itis_gdpr_extension/security/gdpr_security.xml rename to contact_search_form/security/gdpr_security.xml index 591d923..ccffe8e 100755 --- a/itis_gdpr_extension/security/gdpr_security.xml +++ b/contact_search_form/security/gdpr_security.xml @@ -1,8 +1,8 @@ - - Data Protection Officers + + Data Protection Officer \ No newline at end of file diff --git a/itis_gdpr_extension/security/ir.model.access.csv b/contact_search_form/security/ir.model.access.csv similarity index 100% rename from itis_gdpr_extension/security/ir.model.access.csv rename to contact_search_form/security/ir.model.access.csv diff --git a/contact_search_form/static/description/index.html b/contact_search_form/static/description/index.html new file mode 100755 index 0000000..7babf7f --- /dev/null +++ b/contact_search_form/static/description/index.html @@ -0,0 +1,177 @@ + + + + + + + Schulung + + + + + + + + + + + + + + + +

+ +

Features

+ +

 

+
    +
  • Search + customer related information in any odoo model 

  • +
+

 

+ +
 
+

Search for customer data & report +

+ +

 

+ +

After + installing the module the user is able to + see sub menu in Contacts→ Configuration → Contact Search section like below screen shot. +

+ +

 

+
+
+
+
+
 
+

When user opens the Contact Search form then there are + two fields available to define the value to search for and the model where the search should be performed. Results will be displayed with according + record ID and model name.

+ +

 

+ +

For more information you can see below screen shot.

+ +

 

+ +

+ +

 

+
+
+
+
+
 
+

The according record can be opened from the list view.

+ +
 
+

Itisproductsupport@itis.de

+ +

http://www.itis.de

+ +

 

+ \ No newline at end of file diff --git a/itis_gdpr_extension/views/views.xml b/contact_search_form/views/contact_search.xml similarity index 56% rename from itis_gdpr_extension/views/views.xml rename to contact_search_form/views/contact_search.xml index d3761c5..5bfcd62 100755 --- a/itis_gdpr_extension/views/views.xml +++ b/contact_search_form/views/contact_search.xml @@ -30,29 +30,6 @@ - - search.line.tree.view.itis - search.line - - - - - - -