Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG][9.0][auth_supplier] Migrate. #434

Merged
merged 16 commits into from
May 27, 2016
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions auth_supplier/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=============
Auth Supplier
=============

This module was written to extends the functionality of auth signup
and allows the user to create an account as a supplier.

Configuration
=============

To enable users to create accounts:

* *Developer mode* should be activated first to have access to technical features.
* Go to *Settings > General settings*.
* Enable *Allow external users to sign up*.
* Enable *Activate the customer portal*.

Usage
=====

To use this module, you need to:

* Log out.
* In home page, press *Sign in*.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Sign in/Sign up/ (tested on runbot)

* Press *Sign up*.
* Select *Supplier* in account type.
* Fill the form.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0

Known issues / Roadmap
======================

* If you have nothing in the portal, the user will be redirected to an empty
page.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/server-tools/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.

Credits
=======

Contributors
------------

* Rafael Blasco <[email protected]>
* Pedro M. Baeza <[email protected]>
* Carlos Dauden <[email protected]>
* Sergio Teruel <[email protected]>
* Jairo Llopis <[email protected]>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
7 changes: 7 additions & 0 deletions auth_supplier/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-
# (c) 2015 Antiun Ingeniería S.L. - Sergio Teruel
# (c) 2015 Antiun Ingeniería S.L. - Carlos Dauden
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
from . import controllers
25 changes: 25 additions & 0 deletions auth_supplier/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# (c) 2015 Antiun Ingeniería S.L. - Sergio Teruel
# (c) 2015 Antiun Ingeniería S.L. - Carlos Dauden
# © 2016 Jairo Llopis <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
'name': "Auth Supplier",
'category': 'Tools',
'version': '9.0.1.0.0',
'depends': [
'auth_signup',
],
'data': [
'security/auth_supplier_security.xml',
'views/auth_supplier_view.xml',
],
'author': 'Antiun Ingeniería S.L., '
'Incaser Informatica S.L., '
"Tecnativa, "
'Odoo Community Association (OCA)',
'website': 'http://www.incaser.es',
'license': 'AGPL-3',
'installable': True,
}
6 changes: 6 additions & 0 deletions auth_supplier/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# (c) 2015 Antiun Ingeniería S.L. - Sergio Teruel
# (c) 2015 Antiun Ingeniería S.L. - Carlos Dauden
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import main
14 changes: 14 additions & 0 deletions auth_supplier/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
# (c) 2015 Antiun Ingeniería S.L. - Sergio Teruel
# (c) 2015 Antiun Ingeniería S.L. - Carlos Dauden
# © 2016 Jairo Llopis <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from openerp.addons.auth_signup.controllers.main import AuthSignupHome
from openerp.http import request


class AuthSignupHome(AuthSignupHome):
def _signup_with_values(self, token, values):
values.update(account_type=request.params.get('account_type', False))
return super(AuthSignupHome, self)._signup_with_values(token, values)
49 changes: 49 additions & 0 deletions auth_supplier/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_supplier
#
# Translators:
# Rudolf Schnapka <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-19 14:44+0000\n"
"PO-Revision-Date: 2016-01-18 14:17+0000\n"
"Last-Translator: Rudolf Schnapka <[email protected]>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-server-tools-8-0/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Account Type"
msgstr "Kontoart"

#. module: auth_supplier
#: model:ir.module.category,name:auth_supplier.module_auth_supplier
msgid "Auth Supplier"
msgstr "Auth-Lieferant"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Customer"
msgstr "Kunde"

#. module: auth_supplier
#: model:res.groups,name:auth_supplier.group_auth_supplier
msgid "Portal Supplier"
msgstr "Portal-Lieferant"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Supplier"
msgstr "Lieferant"

#. module: auth_supplier
#: model:ir.model,name:auth_supplier.model_res_users
msgid "Users"
msgstr "Benutzer"
48 changes: 48 additions & 0 deletions auth_supplier/i18n/en.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_supplier
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-27 14:01+0000\n"
"PO-Revision-Date: 2015-10-30 14:43+0000\n"
"Last-Translator: OCA Transbot <[email protected]>\n"
"Language-Team: English (http://www.transifex.com/oca/OCA-server-tools-8-0/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Account Type"
msgstr "Account Type"

#. module: auth_supplier
#: model:ir.module.category,name:auth_supplier.module_auth_supplier
msgid "Auth Supplier"
msgstr "Auth Supplier"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Customer"
msgstr "Customer"

#. module: auth_supplier
#: model:res.groups,name:auth_supplier.group_auth_supplier
msgid "Portal Supplier"
msgstr "Portal Supplier"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Supplier"
msgstr "Supplier"

#. module: auth_supplier
#: model:ir.model,name:auth_supplier.model_res_users
msgid "Users"
msgstr "Users"
49 changes: 49 additions & 0 deletions auth_supplier/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_supplier
#
# Translators:
# Antonio Trueba, 2016
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-19 14:44+0000\n"
"PO-Revision-Date: 2016-02-16 15:12+0000\n"
"Last-Translator: Antonio Trueba\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-server-tools-8-0/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Account Type"
msgstr "Tipo de cuenta"

#. module: auth_supplier
#: model:ir.module.category,name:auth_supplier.module_auth_supplier
msgid "Auth Supplier"
msgstr "Proveedor de autenticación"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Customer"
msgstr "Cliente"

#. module: auth_supplier
#: model:res.groups,name:auth_supplier.group_auth_supplier
msgid "Portal Supplier"
msgstr ""

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Supplier"
msgstr "Proveedor"

#. module: auth_supplier
#: model:ir.model,name:auth_supplier.model_res_users
msgid "Users"
msgstr "Usuarios"
49 changes: 49 additions & 0 deletions auth_supplier/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_supplier
#
# Translators:
# Christophe kryskool <[email protected]>, 2015
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-27 14:01+0000\n"
"PO-Revision-Date: 2015-11-21 17:37+0000\n"
"Last-Translator: Christophe kryskool <[email protected]>\n"
"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-8-0/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Account Type"
msgstr "Type de compte"

#. module: auth_supplier
#: model:ir.module.category,name:auth_supplier.module_auth_supplier
msgid "Auth Supplier"
msgstr "Identification fournisseur"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Customer"
msgstr "Client"

#. module: auth_supplier
#: model:res.groups,name:auth_supplier.group_auth_supplier
msgid "Portal Supplier"
msgstr "Portail fournisseur"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Supplier"
msgstr "Fournisseur"

#. module: auth_supplier
#: model:ir.model,name:auth_supplier.model_res_users
msgid "Users"
msgstr "Utilisateurs"
49 changes: 49 additions & 0 deletions auth_supplier/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * auth_supplier
#
# Translators:
# Paolo Valier, 2016
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-03-17 15:36+0000\n"
"PO-Revision-Date: 2016-03-13 09:00+0000\n"
"Last-Translator: Paolo Valier\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Account Type"
msgstr "Tipo di Account"

#. module: auth_supplier
#: model:ir.module.category,name:auth_supplier.module_auth_supplier
msgid "Auth Supplier"
msgstr ""

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Customer"
msgstr "Cliente"

#. module: auth_supplier
#: model:res.groups,name:auth_supplier.group_auth_supplier
msgid "Portal Supplier"
msgstr "Portale del Fornitore"

#. module: auth_supplier
#: view:website:auth_signup.fields
msgid "Supplier"
msgstr "Fornitore"

#. module: auth_supplier
#: model:ir.model,name:auth_supplier.model_res_users
msgid "Users"
msgstr "Utenti"
Loading