diff --git a/base_technical_user/__init__.py b/base_technical_user/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/base_technical_user/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/base_technical_user/__manifest__.py b/base_technical_user/__manifest__.py new file mode 100644 index 000000000..d50ed0420 --- /dev/null +++ b/base_technical_user/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + 'name': "Base Technical User", + 'summary': """ + Add a technical user parameter on the company """, + 'author': 'ACSONE SA/NV, Odoo Community Association (OCA)', + 'website': "https://github.com/OCA/server-tools/", + 'category': 'Hidden/Dependency', + 'version': '12.0.1.0.0', + 'license': 'AGPL-3', + 'depends': [ + 'base', + ], + 'data': [ + 'views/res_company_view.xml' + ], + 'installable': True +} diff --git a/base_technical_user/i18n/ar.po b/base_technical_user/i18n/ar.po new file mode 100644 index 000000000..81adede0d --- /dev/null +++ b/base_technical_user/i18n/ar.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" + +#. module: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "" diff --git a/base_technical_user/i18n/base_technical_user.pot b/base_technical_user/i18n/base_technical_user.pot new file mode 100644 index 000000000..b4c88249f --- /dev/null +++ b/base_technical_user/i18n/base_technical_user.pot @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +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: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "" + diff --git a/base_technical_user/i18n/de.po b/base_technical_user/i18n/de.po new file mode 100644 index 000000000..847fd340f --- /dev/null +++ b/base_technical_user/i18n/de.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +# Translators: +# Niki Waibel , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 02:10+0000\n" +"PO-Revision-Date: 2017-12-01 02:10+0000\n" +"Last-Translator: Niki Waibel , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\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" + +#. module: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "Unternehmen" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "" diff --git a/base_technical_user/i18n/es.po b/base_technical_user/i18n/es.po new file mode 100644 index 000000000..8af9a7e13 --- /dev/null +++ b/base_technical_user/i18n/es.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +# Translators: +# Pedro M. Baeza , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 02:10+0000\n" +"PO-Revision-Date: 2017-12-01 02:10+0000\n" +"Last-Translator: Pedro M. Baeza , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\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" + +#. module: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "Compañías" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "" diff --git a/base_technical_user/i18n/fr.po b/base_technical_user/i18n/fr.po new file mode 100644 index 000000000..905059130 --- /dev/null +++ b/base_technical_user/i18n/fr.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +# Translators: +# Quentin THEURET , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 02:10+0000\n" +"PO-Revision-Date: 2017-12-01 02:10+0000\n" +"Last-Translator: Quentin THEURET , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\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" + +#. module: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "Sociétés" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "" diff --git a/base_technical_user/i18n/hr.po b/base_technical_user/i18n/hr.po new file mode 100644 index 000000000..1b51f17af --- /dev/null +++ b/base_technical_user/i18n/hr.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 02:10+0000\n" +"PO-Revision-Date: 2017-12-01 02:10+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\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" + +#. module: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "Tvrtke" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "Postavke" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "Tehnički parametri" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "Tehnički korisnik" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "Ovaj korisnik može biti korišten od strane procesa u tehničke svrhe" diff --git a/base_technical_user/i18n/it.po b/base_technical_user/i18n/it.po new file mode 100644 index 000000000..bfbf9fc92 --- /dev/null +++ b/base_technical_user/i18n/it.po @@ -0,0 +1,44 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +# Translators: +# Paolo Valier , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-06 02:25+0000\n" +"PO-Revision-Date: 2018-01-06 02:25+0000\n" +"Last-Translator: Paolo Valier , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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" + +#. module: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "Aziende" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "Configurazione" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "Parametri Tecnici" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "" diff --git a/base_technical_user/i18n/nl_NL.po b/base_technical_user/i18n/nl_NL.po new file mode 100644 index 000000000..54d80ade9 --- /dev/null +++ b/base_technical_user/i18n/nl_NL.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 02:10+0000\n" +"PO-Revision-Date: 2017-12-01 02:10+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\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" + +#. module: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "Bedrijven" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "" diff --git a/base_technical_user/i18n/pt.po b/base_technical_user/i18n/pt.po new file mode 100644 index 000000000..9f97bcec2 --- /dev/null +++ b/base_technical_user/i18n/pt.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_technical_user +# +# Translators: +# Pedro Castro Silva , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 02:10+0000\n" +"PO-Revision-Date: 2017-12-01 02:10+0000\n" +"Last-Translator: Pedro Castro Silva , " +"2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\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" + +#. module: base_technical_user +#: model:ir.model,name:base_technical_user.model_res_company +msgid "Companies" +msgstr "Empresas" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Configuration" +msgstr "" + +#. module: base_technical_user +#: model:ir.ui.view,arch_db:base_technical_user.res_company_view_form_inherit_base_technical_user +msgid "Technical Parameters" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,field_description:base_technical_user.field_res_company_user_tech_id +msgid "Technical User" +msgstr "" + +#. module: base_technical_user +#: model:ir.model.fields,help:base_technical_user.field_res_company_user_tech_id +msgid "This user can be used by process for technical purpose" +msgstr "" diff --git a/base_technical_user/models/__init__.py b/base_technical_user/models/__init__.py new file mode 100644 index 000000000..aff44f335 --- /dev/null +++ b/base_technical_user/models/__init__.py @@ -0,0 +1 @@ +from . import res_company diff --git a/base_technical_user/models/res_company.py b/base_technical_user/models/res_company.py new file mode 100644 index 000000000..625e08933 --- /dev/null +++ b/base_technical_user/models/res_company.py @@ -0,0 +1,13 @@ +# Copyright 2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import models, fields + + +class ResCompany(models.Model): + _inherit = 'res.company' + + user_tech_id = fields.Many2one( + comodel_name="res.users", + string="Technical User", + help="This user can be used by process for technical purpose", + domain="[('company_id', '=', id)]") diff --git a/base_technical_user/readme/CONTRIBUTORS.rst b/base_technical_user/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..4771f8432 --- /dev/null +++ b/base_technical_user/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Cédric Pigeon diff --git a/base_technical_user/readme/DESCRIPTION.rst b/base_technical_user/readme/DESCRIPTION.rst new file mode 100644 index 000000000..406ecba9c --- /dev/null +++ b/base_technical_user/readme/DESCRIPTION.rst @@ -0,0 +1,7 @@ +This module extends the functionality of company management. +It allows you to bind a technical user on the company in order to use it in +batch processes. + +The technical user must +- be inactive to avoid login +- be in the required groups depending of what you need to do diff --git a/base_technical_user/readme/USAGE.rst b/base_technical_user/readme/USAGE.rst new file mode 100644 index 000000000..2ed2ad738 --- /dev/null +++ b/base_technical_user/readme/USAGE.rst @@ -0,0 +1,2 @@ +If you install the module, you will find a tab on the company form allowing +to define the technical user. diff --git a/base_technical_user/static/description/icon.png b/base_technical_user/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/base_technical_user/static/description/icon.png differ diff --git a/base_technical_user/static/description/index.html b/base_technical_user/static/description/index.html new file mode 100644 index 000000000..81932eef4 --- /dev/null +++ b/base_technical_user/static/description/index.html @@ -0,0 +1,430 @@ + + + + + + +Base Technical User + + + +
+

Base Technical User

+ + +

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runbot

+

This module extends the functionality of company management. +It allows you to bind a technical user on the company in order to use it in +batch processes.

+

The technical user must +- be inactive to avoid login +- be in the required groups depending of what you need to do

+

Table of contents

+ +
+

Usage

+

If you install the module, you will find a tab on the company form allowing +to define the technical user.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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/server-tools project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/base_technical_user/views/res_company_view.xml b/base_technical_user/views/res_company_view.xml new file mode 100644 index 000000000..032751b11 --- /dev/null +++ b/base_technical_user/views/res_company_view.xml @@ -0,0 +1,20 @@ + + + + res.company.form (base_technical_user) + res.company + + 20 + + + + + + + + + + + + +