diff --git a/base_user_gravatar/__manifest__.py b/base_user_gravatar/__manifest__.py index dff9834b4..fb9204ec3 100644 --- a/base_user_gravatar/__manifest__.py +++ b/base_user_gravatar/__manifest__.py @@ -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', ], diff --git a/base_user_gravatar/i18n/de.po b/base_user_gravatar/i18n/de.po index 9526c4879..e4d907918 100644 --- a/base_user_gravatar/i18n/de.po +++ b/base_user_gravatar/i18n/de.po @@ -6,7 +6,7 @@ # Rudolf Schnapka , 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" diff --git a/base_user_gravatar/i18n/es.po b/base_user_gravatar/i18n/es.po index ad0c0e270..78a0cf769 100644 --- a/base_user_gravatar/i18n/es.po +++ b/base_user_gravatar/i18n/es.po @@ -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" diff --git a/base_user_gravatar/i18n/fr.po b/base_user_gravatar/i18n/fr.po index d4c3f967c..ecb93dd6e 100644 --- a/base_user_gravatar/i18n/fr.po +++ b/base_user_gravatar/i18n/fr.po @@ -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 "" diff --git a/base_user_gravatar/i18n/hr.po b/base_user_gravatar/i18n/hr.po index 5027bb26b..2af622fac 100644 --- a/base_user_gravatar/i18n/hr.po +++ b/base_user_gravatar/i18n/hr.po @@ -6,7 +6,7 @@ # Bole , 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" diff --git a/base_user_gravatar/i18n/hr_HR.po b/base_user_gravatar/i18n/hr_HR.po index 5f9b8ab5c..fa06b28f5 100644 --- a/base_user_gravatar/i18n/hr_HR.po +++ b/base_user_gravatar/i18n/hr_HR.po @@ -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 "" diff --git a/base_user_gravatar/i18n/it.po b/base_user_gravatar/i18n/it.po index 93b1a689b..2331dfd06 100644 --- a/base_user_gravatar/i18n/it.po +++ b/base_user_gravatar/i18n/it.po @@ -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 "" diff --git a/base_user_gravatar/i18n/pt_BR.po b/base_user_gravatar/i18n/pt_BR.po index 8ead69719..1561a7651 100644 --- a/base_user_gravatar/i18n/pt_BR.po +++ b/base_user_gravatar/i18n/pt_BR.po @@ -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 "" diff --git a/base_user_gravatar/i18n/sl.po b/base_user_gravatar/i18n/sl.po index a9a708f06..d9175076f 100644 --- a/base_user_gravatar/i18n/sl.po +++ b/base_user_gravatar/i18n/sl.po @@ -6,7 +6,7 @@ # Matjaž Mozetič , 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" diff --git a/base_user_gravatar/i18n/tr.po b/base_user_gravatar/i18n/tr.po index 32455e53f..82ca5c56b 100644 --- a/base_user_gravatar/i18n/tr.po +++ b/base_user_gravatar/i18n/tr.po @@ -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 "" diff --git a/base_user_gravatar/i18n/zh_CN.po b/base_user_gravatar/i18n/zh_CN.po index 8591aa642..1e3e008ab 100644 --- a/base_user_gravatar/i18n/zh_CN.po +++ b/base_user_gravatar/i18n/zh_CN.po @@ -6,7 +6,7 @@ # Jeffery Chenn , 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图像" diff --git a/base_user_gravatar/models/res_users.py b/base_user_gravatar/models/res_users.py index a3ac27e93..3a7afc202 100644 --- a/base_user_gravatar/models/res_users.py +++ b/base_user_gravatar/models/res_users.py @@ -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): diff --git a/base_user_gravatar/tests/test_res_users.py b/base_user_gravatar/tests/test_res_users.py index 7a64fc837..ca1fadca9 100755 --- a/base_user_gravatar/tests/test_res_users.py +++ b/base_user_gravatar/tests/test_res_users.py @@ -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 diff --git a/base_user_gravatar/views/res_users_view.xml b/base_user_gravatar/views/res_users_view.xml index 48ff4e5ae..cac654a69 100644 --- a/base_user_gravatar/views/res_users_view.xml +++ b/base_user_gravatar/views/res_users_view.xml @@ -1,29 +1,34 @@ - - + - - res.users.form.gravatar - res.users - - - -