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
parent
commit
d4a39877dd
No known key found for this signature in database GPG Key ID: 7DDBA4BA81B934CF
  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. 51
      base_user_gravatar/views/res_users_view.xml

7
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',
],

6
base_user_gravatar/i18n/de.po

@ -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"

6
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"

4
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 ""

6
base_user_gravatar/i18n/hr.po

@ -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"

6
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 ""

6
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 ""

4
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 ""

6
base_user_gravatar/i18n/sl.po

@ -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"

6
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 ""

6
base_user_gravatar/i18n/zh_CN.po

@ -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
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):

4
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

51
base_user_gravatar/views/res_users_view.xml

@ -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">
<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"/>
</field>
<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"
/>
</field>
</record>
</field>
</record>
<record id="view_users_form_gravatar" 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"/>
</field>
<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"
/>
</field>
</record>
</data>
</openerp>
</field>
</record>
</odoo>
Loading…
Cancel
Save