Browse Source

[9.0][FIX][auth_supplier] Right permissions. (#440)

* [9.0][FIX][auth_supplier] Right permissions.
pull/446/head
Yajo 9 years ago
committed by Pedro M. Baeza
parent
commit
b3b1fef599
  1. 17
      auth_supplier/README.rst
  2. 4
      auth_supplier/__openerp__.py
  3. 10
      auth_supplier/security/auth_supplier_security.xml

17
auth_supplier/README.rst

@ -6,8 +6,10 @@
Auth Supplier Auth Supplier
============= =============
This module was written to extends the functionality of auth signup
and allows the user to create an account as a supplier.
This module was written to extends the functionality of auth signup and allows
the user to create an account as a supplier, marking him as with permissions
for a supplier portal (although nothing is implemented for that portal, other
modules should do that).
Configuration Configuration
============= =============
@ -26,10 +28,19 @@ To use this module, you need to:
* Log out. * Log out.
* If you have a website, in home page press *Sign in*. * If you have a website, in home page press *Sign in*.
* Press *Sign up*.
* Press *Sign up* to go to `the sign up page </web/signup>`_.
* Select *Supplier* in account type. * Select *Supplier* in account type.
* Fill the form. * Fill the form.
If you want to give permissions to anybody for the supplier portal:
#. Go to *Contacts*.
#. Choose a supplier.
#. Go to *Action > Portal Access Management*.
#. Choose *Other Extra Rights / Supplier Portal*.
#. Choose contacts to be *In Portal*.
#. Press *Apply*.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0 :target: https://runbot.odoo-community.org/runbot/149/9.0

4
auth_supplier/__openerp__.py

@ -6,8 +6,8 @@
{ {
'name': "Auth Supplier", 'name': "Auth Supplier",
'category': 'Tools',
'version': '9.0.1.0.0',
'category': 'Portal',
'version': '9.0.1.1.0',
'depends': [ 'depends': [
'auth_signup', 'auth_signup',
], ],

10
auth_supplier/security/auth_supplier_security.xml

@ -1,14 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<record model="ir.module.category" id="module_auth_supplier">
<field name="name">Auth Supplier</field>
<field name="sequence">100</field>
</record>
<record id="group_auth_supplier" model="res.groups"> <record id="group_auth_supplier" model="res.groups">
<field name="name">Portal Supplier</field>
<field name="category_id" ref="module_auth_supplier"/>
<field name="name">Supplier Portal</field>
<field name="category_id" ref="base.module_category_extra"/>
<field name="is_portal" eval="True"/>
</record> </record>
</odoo> </odoo>
Loading…
Cancel
Save