Browse Source

Merge pull request #584 from laslabs/release/10.0/gravatar

[MIG][10.0] base_user_gravatar
pull/604/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
16ab1dd765
  1. 7
      base_user_gravatar/__manifest__.py
  2. 6
      base_user_gravatar/i18n/de.po
  3. 6
      base_user_gravatar/i18n/es.po
  4. 4
      base_user_gravatar/i18n/fr.po
  5. 6
      base_user_gravatar/i18n/hr.po
  6. 6
      base_user_gravatar/i18n/hr_HR.po
  7. 6
      base_user_gravatar/i18n/it.po
  8. 4
      base_user_gravatar/i18n/pt_BR.po
  9. 6
      base_user_gravatar/i18n/sl.po
  10. 6
      base_user_gravatar/i18n/tr.po
  11. 6
      base_user_gravatar/i18n/zh_CN.po
  12. 6
      base_user_gravatar/models/res_users.py
  13. 4
      base_user_gravatar/tests/test_res_users.py
  14. 23
      base_user_gravatar/views/res_users_view.xml

7
base_user_gravatar/__manifest__.py

@ -4,14 +4,13 @@
{ {
'name': 'Synchronize Gravatar Image', 'name': 'Synchronize Gravatar Image',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'author': 'LasLabs, Endika Iglesias, Odoo Community Association (OCA)', 'author': 'LasLabs, Endika Iglesias, Odoo Community Association (OCA)',
'category': 'Tools', 'category': 'Tools',
'website': 'http://www.endikaiglesias.com/',
'website': 'https://odoo-community.org/',
"license": "AGPL-3", "license": "AGPL-3",
"application": False, "application": False,
'installable': False,
'depends': ['base'],
'installable': True,
'data': [ 'data': [
'views/res_users_view.xml', 'views/res_users_view.xml',
], ],

6
base_user_gravatar/i18n/de.po

@ -6,7 +6,7 @@
# Rudolf Schnapka <rs@techno-flex.de>, 2016 # Rudolf Schnapka <rs@techno-flex.de>, 2016
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Project-Id-Version: server-tools (10.0)\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-04-17 12:15+0000\n" "POT-Creation-Date: 2016-04-17 12:15+0000\n"
"PO-Revision-Date: 2016-04-21 09:16+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" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_user_gravatar #. 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" msgid "Get Gravatar image"
msgstr "Hole Gravatar-Bild" msgstr "Hole Gravatar-Bild"

6
base_user_gravatar/i18n/es.po

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Project-Id-Version: server-tools (10.0)\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-04-14 11:48+0000\n" "POT-Creation-Date: 2016-04-14 11:48+0000\n"
"PO-Revision-Date: 2016-04-04 16:08+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" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_user_gravatar #. 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" msgid "Get Gravatar image"
msgstr "Obtener imagen de Gravatar" msgstr "Obtener imagen de Gravatar"

4
base_user_gravatar/i18n/fr.po

@ -18,8 +18,8 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: base_user_gravatar #. 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" msgid "Get Gravatar image"
msgstr "" msgstr ""

6
base_user_gravatar/i18n/hr.po

@ -6,7 +6,7 @@
# Bole <bole@dajmi5.com>, 2016 # Bole <bole@dajmi5.com>, 2016
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Project-Id-Version: server-tools (10.0)\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-29 00:48+0000\n" "POT-Creation-Date: 2016-06-29 00:48+0000\n"
"PO-Revision-Date: 2016-06-14 10:56+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" "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 #. 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" msgid "Get Gravatar image"
msgstr "Dohvati gravatar" msgstr "Dohvati gravatar"

6
base_user_gravatar/i18n/hr_HR.po

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Project-Id-Version: server-tools (10.0)\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-06-09 12:31+0000\n" "POT-Creation-Date: 2016-06-09 12:31+0000\n"
"PO-Revision-Date: 2016-04-04 16:07+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" "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 #. 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" msgid "Get Gravatar image"
msgstr "" msgstr ""

6
base_user_gravatar/i18n/it.po

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Project-Id-Version: server-tools (10.0)\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-28 02:43+0000\n" "POT-Creation-Date: 2016-05-28 02:43+0000\n"
"PO-Revision-Date: 2016-04-04 16:07+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" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_user_gravatar #. 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" msgid "Get Gravatar image"
msgstr "" msgstr ""

4
base_user_gravatar/i18n/pt_BR.po

@ -18,8 +18,8 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: base_user_gravatar #. 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" msgid "Get Gravatar image"
msgstr "" msgstr ""

6
base_user_gravatar/i18n/sl.po

@ -6,7 +6,7 @@
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2015 # Matjaž Mozetič <m.mozetic@matmoz.si>, 2015
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Project-Id-Version: server-tools (10.0)\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-04-14 11:48+0000\n" "POT-Creation-Date: 2016-04-14 11:48+0000\n"
"PO-Revision-Date: 2016-04-04 16:08+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" "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 #. 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" msgid "Get Gravatar image"
msgstr "Pridobi Gravatar podobo" msgstr "Pridobi Gravatar podobo"

6
base_user_gravatar/i18n/tr.po

@ -5,7 +5,7 @@
# Translators: # Translators:
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Project-Id-Version: server-tools (10.0)\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-05-28 02:43+0000\n" "POT-Creation-Date: 2016-05-28 02:43+0000\n"
"PO-Revision-Date: 2016-04-04 16:07+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" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: base_user_gravatar #. 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" msgid "Get Gravatar image"
msgstr "" msgstr ""

6
base_user_gravatar/i18n/zh_CN.po

@ -6,7 +6,7 @@
# Jeffery Chenn <jeffery9@gmail.com>, 2016 # Jeffery Chenn <jeffery9@gmail.com>, 2016
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: server-tools (9.0)\n"
"Project-Id-Version: server-tools (10.0)\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-31 11:58+0000\n" "POT-Creation-Date: 2016-08-31 11:58+0000\n"
"PO-Revision-Date: 2016-09-04 06:08+0000\n" "PO-Revision-Date: 2016-09-04 06:08+0000\n"
@ -19,8 +19,8 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
#. module: base_user_gravatar #. 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" msgid "Get Gravatar image"
msgstr "取得Gravatar图像" msgstr "取得Gravatar图像"

6
base_user_gravatar/models/res_users.py

@ -6,9 +6,9 @@ import base64
import hashlib import hashlib
import urllib2 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): class ResUsers(models.Model):

4
base_user_gravatar/tests/test_res_users.py

@ -2,8 +2,8 @@
# © 2016-TODAY LasLabs, Inc. [https://laslabs.com] # © 2016-TODAY LasLabs, Inc. [https://laslabs.com]
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # 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 mock
import hashlib import hashlib

23
base_user_gravatar/views/res_users_view.xml

@ -1,29 +1,34 @@
<?xml version="1.0" encoding="utf-8"?> <?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="name">res.users.form.gravatar</field>
<field name="model">res.users</field> <field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form_simple_modif"/> <field name="inherit_id" ref="base.view_users_form_simple_modif"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="name" position="after"> <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>
</field> </field>
</record> </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="name">res.users.form.gravatar</field>
<field name="model">res.users</field> <field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/> <field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="login" position="after"> <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>
</field> </field>
</record> </record>
</data>
</openerp>
</odoo>
Loading…
Cancel
Save