improve config

bzr revid: al@openerp.com-20120816231425-elfibnc7wfchzqpw
This commit is contained in:
Antony Lesuisse 2012-08-17 01:14:25 +02:00
parent 9f2b498a8a
commit b441abb3a9
3 changed files with 16 additions and 10 deletions

View File

@ -7,8 +7,8 @@
<field name="model">base.config.settings</field>
<field name="inherit_id" ref="base_setup.view_general_configuration"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='module_auth_signup']/.." position="after">
<div attrs="{'invisible':[('module_auth_signup','=',False)]}">
<xpath expr="//field[@name='module_auth_anonymous']/.." position="after">
<div>
<label for="auth_signup_template_user_id"/>
<field name="auth_signup_template_user_id" class="oe_inline"/>
</div>

View File

@ -28,12 +28,13 @@ class base_config_settings(osv.osv_memory):
'module_multi_company': fields.boolean('manage multiple companies',
help="""Work in multi-company environments, with appropriate security access between companies.
This installs the module multi_company."""),
'module_portal': fields.boolean('activate customer portal',
help="""The portal will give access to a series of documents for your customers; his quotations, his invoices, his projects, etc."""),
'module_share': fields.boolean('allow documents sharing',
help="""As an example, you will be able to share a project or some tasks to your customers, or quotes/sales to several persons at your customer company, or your agenda availabilities to your contacts."""),
'module_auth_signup': fields.boolean('allow external users to sign up'),
'module_auth_oauth': fields.boolean('external authentication, login with google, facebook, ...'),
help="""Share or embbed any screen of openerp."""),
'module_portal': fields.boolean('activate customer portal',
help="""Give access your customers and suppliers to their documents."""),
'module_auth_anonymous': fields.boolean('public website',
help="""Enable the public part of openerp, the public part of openerp are browsable like a website."""),
'module_auth_oauth': fields.boolean('use external authentication providers, sign in with google, facebook, ...'),
}
def open_company(self, cr, uid, ids, context=None):

View File

@ -38,16 +38,21 @@
</div>
</group>
<group>
<label for="id" string="Access"/>
<label for="id" string="Portal access"/>
<div>
<div>
<field name="module_portal" class="oe_inline"/>
<label for="module_portal"/>
</div>
<div>
<field name="module_auth_signup" class="oe_inline"/>
<label for="module_auth_signup"/>
<field name="module_auth_anonymous" class="oe_inline"/>
<label for="module_auth_anonymous"/>
</div>
</div>
</group>
<group>
<label for="id" string="Authentication"/>
<div>
<div>
<field name="module_auth_oauth" class="oe_inline"/>
<label for="module_auth_oauth"/>