[IMP] Moved all js code from auth_anonymous to portal_anonymous (changed also all related names, etc.) which will do all the job. Removed auth_anonymous
bzr revid: vta@openerp.com-20121212124049-yttnbx75zxrekvc4
This commit is contained in:
parent
afad97f722
commit
2501470305
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
'name': 'Anonymous',
|
||||
'description': """
|
||||
Allow anonymous access to OpenERP.
|
||||
==================================
|
||||
""",
|
||||
'author': 'OpenERP SA',
|
||||
'version': '1.0',
|
||||
'category': 'Authentication',
|
||||
'website': 'http://www.openerp.com',
|
||||
'installable': True,
|
||||
'depends': ['web'],
|
||||
'js': ['static/src/js/auth_anonymous.js'],
|
||||
'qweb': ['static/src/xml/auth_anonymous.xml'],
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
# Arabic translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-12-01 17:58+0000\n"
|
||||
"Last-Translator: gehad shaat <gehad.shaath@gmail.com>\n"
|
||||
"Language-Team: Arabic <ar@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-12-02 04:38+0000\n"
|
||||
"X-Generator: Launchpad (build 16319)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "تسجيل دخول"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr "مجموعة مجهولة"
|
|
@ -1,29 +0,0 @@
|
|||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * auth_anonymous
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 7.0alpha\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-11-24 02:52+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: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr ""
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr ""
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
# French translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-12-07 10:27+0000\n"
|
||||
"Last-Translator: Quentin THEURET <Unknown>\n"
|
||||
"Language-Team: French <fr@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-12-08 04:59+0000\n"
|
||||
"X-Generator: Launchpad (build 16341)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "Connexion"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr ""
|
|
@ -1,30 +0,0 @@
|
|||
# Croatian translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-12-09 19:39+0000\n"
|
||||
"Last-Translator: Goran Kliska <gkliska@gmail.com>\n"
|
||||
"Language-Team: Croatian <hr@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-12-10 04:39+0000\n"
|
||||
"X-Generator: Launchpad (build 16341)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "Prijava"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr "Anonimna grupa"
|
|
@ -1,30 +0,0 @@
|
|||
# Italian translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-11-30 00:10+0000\n"
|
||||
"Last-Translator: Sergio Corato <Unknown>\n"
|
||||
"Language-Team: Italian <it@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-12-01 05:09+0000\n"
|
||||
"X-Generator: Launchpad (build 16319)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "Login"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr "Gruppo Anonimo"
|
|
@ -1,30 +0,0 @@
|
|||
# Norwegian Bokmal translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-12-02 20:46+0000\n"
|
||||
"Last-Translator: Kaare Pettersen <Unknown>\n"
|
||||
"Language-Team: Norwegian Bokmal <nb@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-12-03 04:36+0000\n"
|
||||
"X-Generator: Launchpad (build 16319)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "Logg inn."
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr "Anonym gruppe."
|
|
@ -1,30 +0,0 @@
|
|||
# Dutch translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-11-29 15:11+0000\n"
|
||||
"Last-Translator: Erwin van der Ploeg (Endian Solutions) <Unknown>\n"
|
||||
"Language-Team: Dutch <nl@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-11-30 05:08+0000\n"
|
||||
"X-Generator: Launchpad (build 16319)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "Inloggen"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr "Anonieme groep"
|
|
@ -1,30 +0,0 @@
|
|||
# Dutch (Belgium) translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-11-27 13:37+0000\n"
|
||||
"Last-Translator: Els Van Vossel (Agaplan) <Unknown>\n"
|
||||
"Language-Team: Dutch (Belgium) <nl_BE@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-11-28 04:41+0000\n"
|
||||
"X-Generator: Launchpad (build 16309)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "Aanmelden"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr "Anonieme groep"
|
|
@ -1,30 +0,0 @@
|
|||
# Brazilian Portuguese translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-12-10 14:18+0000\n"
|
||||
"Last-Translator: Projetaty Soluções OpenSource <Unknown>\n"
|
||||
"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-12-11 04:49+0000\n"
|
||||
"X-Generator: Launchpad (build 16356)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "Autenticação"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr "Grupo Anônimo"
|
|
@ -1,30 +0,0 @@
|
|||
# Chinese (Simplified) translation for openobject-addons
|
||||
# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012
|
||||
# This file is distributed under the same license as the openobject-addons package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: openobject-addons\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-11-24 02:52+0000\n"
|
||||
"PO-Revision-Date: 2012-11-27 16:43+0000\n"
|
||||
"Last-Translator: ccdos <ccdos@163.com>\n"
|
||||
"Language-Team: Chinese (Simplified) <zh_CN@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-11-28 04:41+0000\n"
|
||||
"X-Generator: Launchpad (build 16309)\n"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#. openerp-web
|
||||
#: code:addons/auth_anonymous/static/src/xml/auth_anonymous.xml:9
|
||||
#, python-format
|
||||
msgid "Login"
|
||||
msgstr "登录"
|
||||
|
||||
#. module: auth_anonymous
|
||||
#: model:res.groups,name:auth_anonymous.group_anonymous
|
||||
msgid "Anonymous Group"
|
||||
msgstr "匿名组"
|
|
@ -7,7 +7,7 @@
|
|||
<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_anonymous']/.." position="after">
|
||||
<xpath expr="//field[@name='module_portal_anonymous']/.." position="after">
|
||||
<div>
|
||||
<field name="auth_signup_reset_password" class="oe_inline"/>
|
||||
<label for="auth_signup_reset_password"/>
|
||||
|
|
|
@ -32,7 +32,7 @@ class base_config_settings(osv.osv_memory):
|
|||
help="""Share or embbed any screen of openerp."""),
|
||||
'module_portal': fields.boolean('Activate the customer/supplier portal',
|
||||
help="""Give access your customers and suppliers to their documents."""),
|
||||
'module_auth_anonymous': fields.boolean('Activate the public portal',
|
||||
'module_portal_anonymous': fields.boolean('Activate the public portal',
|
||||
help="""Enable the public part of openerp, openerp becomes a public website."""),
|
||||
'module_auth_oauth': fields.boolean('Use external authentication providers, sign in with google, facebook, ...'),
|
||||
'module_base_import': fields.boolean("Allow users to import data from CSV files"),
|
||||
|
|
|
@ -46,8 +46,8 @@
|
|||
<label for="module_portal"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="module_auth_anonymous" class="oe_inline"/>
|
||||
<label for="module_auth_anonymous"/>
|
||||
<field name="module_portal_anonymous" class="oe_inline"/>
|
||||
<label for="module_portal_anonymous"/>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
|
|
|
@ -9,9 +9,11 @@ Allow anonymous to Access Portal.
|
|||
'category': 'Hidden',
|
||||
'website': 'http://www.openerp.com',
|
||||
'installable': True,
|
||||
'depends': ['portal', 'auth_anonymous'],
|
||||
'depends': ['portal', 'web'],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
'portal_anonymous_data.xml',
|
||||
],
|
||||
'js': ['static/src/js/portal_anonymous.js'],
|
||||
'qweb': ['static/src/xml/portal_anonymous.xml'],
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
openerp.auth_anonymous = function(instance) {
|
||||
openerp.portal_anonymous = function(instance) {
|
||||
|
||||
instance.web.Login.include({
|
||||
start: function() {
|
||||
|
@ -19,7 +19,7 @@ openerp.auth_anonymous = function(instance) {
|
|||
init: function(parent) {
|
||||
this._super(parent);
|
||||
if (this.session.username == 'anonymous') {
|
||||
this.template = 'UserMenu.auth_anonymous';
|
||||
this.template = 'UserMenu.portal_anonymous';
|
||||
this.do_update = function() {}; // avoid change of avatar
|
||||
}
|
||||
},
|
|
@ -3,7 +3,7 @@
|
|||
-->
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="UserMenu.auth_anonymous">
|
||||
<t t-name="UserMenu.portal_anonymous">
|
||||
<div>
|
||||
<a href="#" class="oe_user_menu oe_topbar_item oe_topbar_anonymous_login">
|
||||
Login
|
Loading…
Reference in New Issue