Browse Source
[MIG] base_user_gravatar: Upgrade to v10
* Bump version
* Change openerp namespace to odoo
* Change XML Ids to match OCA spec
* Remove depends on base
pull/584/head
Dave Lasley
8 years ago
No known key found for this signature in database
GPG Key ID: 7DDBA4BA81B934CF
14 changed files with
64 additions and
60 deletions
-
base_user_gravatar/__manifest__.py
-
base_user_gravatar/i18n/de.po
-
base_user_gravatar/i18n/es.po
-
base_user_gravatar/i18n/fr.po
-
base_user_gravatar/i18n/hr.po
-
base_user_gravatar/i18n/hr_HR.po
-
base_user_gravatar/i18n/it.po
-
base_user_gravatar/i18n/pt_BR.po
-
base_user_gravatar/i18n/sl.po
-
base_user_gravatar/i18n/tr.po
-
base_user_gravatar/i18n/zh_CN.po
-
base_user_gravatar/models/res_users.py
-
base_user_gravatar/tests/test_res_users.py
-
base_user_gravatar/views/res_users_view.xml
|
|
@ -4,14 +4,13 @@ |
|
|
|
|
|
|
|
{ |
|
|
|
'name': 'Synchronize Gravatar Image', |
|
|
|
'version': '9.0.1.0.0', |
|
|
|
'version': '10.0.1.0.0', |
|
|
|
'author': 'LasLabs, Endika Iglesias, Odoo Community Association (OCA)', |
|
|
|
'category': 'Tools', |
|
|
|
'website': 'http://www.endikaiglesias.com/', |
|
|
|
'website': 'https://odoo-community.org/', |
|
|
|
"license": "AGPL-3", |
|
|
|
"application": False, |
|
|
|
'installable': False, |
|
|
|
'depends': ['base'], |
|
|
|
'installable': True, |
|
|
|
'data': [ |
|
|
|
'views/res_users_view.xml', |
|
|
|
], |
|
|
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
# Rudolf Schnapka <rs@techno-flex.de>, 2016 |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: server-tools (9.0)\n" |
|
|
|
"Project-Id-Version: server-tools (10.0)\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"POT-Creation-Date: 2016-04-17 12:15+0000\n" |
|
|
|
"PO-Revision-Date: 2016-04-21 09:16+0000\n" |
|
|
@ -19,8 +19,8 @@ msgstr "" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|
|
|
|
|
|
|
#. module: base_user_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "Hole Gravatar-Bild" |
|
|
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
# Translators: |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: server-tools (9.0)\n" |
|
|
|
"Project-Id-Version: server-tools (10.0)\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"POT-Creation-Date: 2016-04-14 11:48+0000\n" |
|
|
|
"PO-Revision-Date: 2016-04-04 16:08+0000\n" |
|
|
@ -18,8 +18,8 @@ msgstr "" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|
|
|
|
|
|
|
#. module: base_user_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "Obtener imagen de Gravatar" |
|
|
|
|
|
|
|
|
|
@ -18,8 +18,8 @@ msgstr "" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
|
|
|
|
|
|
|
#. module: base_user_gravatar |
|
|
|
#: view:res.users:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: view:res.users:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: view:res.users:base_user_gravatar.view_users_form |
|
|
|
#: view:res.users:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
# Bole <bole@dajmi5.com>, 2016 |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: server-tools (9.0)\n" |
|
|
|
"Project-Id-Version: server-tools (10.0)\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"POT-Creation-Date: 2016-06-29 00:48+0000\n" |
|
|
|
"PO-Revision-Date: 2016-06-14 10:56+0000\n" |
|
|
@ -19,8 +19,8 @@ msgstr "" |
|
|
|
"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_user_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "Dohvati gravatar" |
|
|
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
# Translators: |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: server-tools (9.0)\n" |
|
|
|
"Project-Id-Version: server-tools (10.0)\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"POT-Creation-Date: 2016-06-09 12:31+0000\n" |
|
|
|
"PO-Revision-Date: 2016-04-04 16:07+0000\n" |
|
|
@ -18,8 +18,8 @@ msgstr "" |
|
|
|
"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_user_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
# Translators: |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: server-tools (9.0)\n" |
|
|
|
"Project-Id-Version: server-tools (10.0)\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"POT-Creation-Date: 2016-05-28 02:43+0000\n" |
|
|
|
"PO-Revision-Date: 2016-04-04 16:07+0000\n" |
|
|
@ -18,8 +18,8 @@ msgstr "" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|
|
|
|
|
|
|
#. module: base_user_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
|
|
@ -18,8 +18,8 @@ msgstr "" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
|
|
|
|
|
|
|
#. module: base_user_gravatar |
|
|
|
#: view:res.users:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: view:res.users:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: view:res.users:base_user_gravatar.view_users_form |
|
|
|
#: view:res.users:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2015 |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: server-tools (9.0)\n" |
|
|
|
"Project-Id-Version: server-tools (10.0)\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"POT-Creation-Date: 2016-04-14 11:48+0000\n" |
|
|
|
"PO-Revision-Date: 2016-04-04 16:08+0000\n" |
|
|
@ -19,8 +19,8 @@ msgstr "" |
|
|
|
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" |
|
|
|
|
|
|
|
#. module: base_user_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "Pridobi Gravatar podobo" |
|
|
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
# Translators: |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: server-tools (9.0)\n" |
|
|
|
"Project-Id-Version: server-tools (10.0)\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"POT-Creation-Date: 2016-05-28 02:43+0000\n" |
|
|
|
"PO-Revision-Date: 2016-04-04 16:07+0000\n" |
|
|
@ -18,8 +18,8 @@ msgstr "" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
|
|
|
|
|
|
|
#. module: base_user_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "" |
|
|
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
# Jeffery Chenn <jeffery9@gmail.com>, 2016 |
|
|
|
msgid "" |
|
|
|
msgstr "" |
|
|
|
"Project-Id-Version: server-tools (9.0)\n" |
|
|
|
"Project-Id-Version: server-tools (10.0)\n" |
|
|
|
"Report-Msgid-Bugs-To: \n" |
|
|
|
"POT-Creation-Date: 2016-08-31 11:58+0000\n" |
|
|
|
"PO-Revision-Date: 2016-09-04 06:08+0000\n" |
|
|
@ -19,8 +19,8 @@ msgstr "" |
|
|
|
"Plural-Forms: nplurals=1; plural=0;\n" |
|
|
|
|
|
|
|
#. module: base_user_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif_gravatar |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form |
|
|
|
#: model:ir.ui.view,arch_db:base_user_gravatar.view_users_form_simple_modif |
|
|
|
msgid "Get Gravatar image" |
|
|
|
msgstr "取得Gravatar图像" |
|
|
|
|
|
|
|
|
|
@ -6,9 +6,9 @@ import base64 |
|
|
|
import hashlib |
|
|
|
import urllib2 |
|
|
|
|
|
|
|
from openerp import api, models |
|
|
|
from openerp.exceptions import Warning as UserError |
|
|
|
from openerp.tools.translate import _ |
|
|
|
from odoo import api, models |
|
|
|
from odoo.exceptions import Warning as UserError |
|
|
|
from odoo.tools.translate import _ |
|
|
|
|
|
|
|
|
|
|
|
class ResUsers(models.Model): |
|
|
|
|
|
@ -2,8 +2,8 @@ |
|
|
|
# © 2016-TODAY LasLabs, Inc. [https://laslabs.com] |
|
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
from openerp.tests.common import TransactionCase |
|
|
|
from openerp.addons.base_user_gravatar.models.res_users import ResUsers |
|
|
|
from odoo.tests.common import TransactionCase |
|
|
|
from odoo.addons.base_user_gravatar.models.res_users import ResUsers |
|
|
|
import mock |
|
|
|
import hashlib |
|
|
|
|
|
|
|
|
|
@ -1,29 +1,34 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<openerp> |
|
|
|
<data> |
|
|
|
<odoo> |
|
|
|
|
|
|
|
<record id="view_users_form_simple_modif_gravatar" model="ir.ui.view"> |
|
|
|
<record id="view_users_form_simple_modif" model="ir.ui.view"> |
|
|
|
<field name="name">res.users.form.gravatar</field> |
|
|
|
<field name="model">res.users</field> |
|
|
|
<field name="inherit_id" ref="base.view_users_form_simple_modif"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="name" position="after"> |
|
|
|
<button name="get_gravatar_image" type="object" string="Get Gravatar image" class="oe_edit_only"/> |
|
|
|
<button name="get_gravatar_image" |
|
|
|
type="object" |
|
|
|
string="Get Gravatar image" |
|
|
|
class="oe_edit_only" |
|
|
|
/> |
|
|
|
</field> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="view_users_form_gravatar" model="ir.ui.view"> |
|
|
|
<record id="view_users_form" model="ir.ui.view"> |
|
|
|
<field name="name">res.users.form.gravatar</field> |
|
|
|
<field name="model">res.users</field> |
|
|
|
<field name="inherit_id" ref="base.view_users_form"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<field name="login" position="after"> |
|
|
|
<button name="get_gravatar_image" type="object" string="Get Gravatar image" class="oe_edit_only"/> |
|
|
|
<button name="get_gravatar_image" |
|
|
|
type="object" |
|
|
|
string="Get Gravatar image" |
|
|
|
class="oe_edit_only" |
|
|
|
/> |
|
|
|
</field> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
</data> |
|
|
|
</openerp> |
|
|
|
|
|
|
|
</odoo> |