From 482a2737885af7c3ef4652020c16f50a70d0459e Mon Sep 17 00:00:00 2001 From: Dave Lasley Date: Thu, 10 Nov 2016 10:45:32 -0800 Subject: [PATCH] [MIG] base_multi_image: Upgrade to v10 * Update openerp to odoo * Bump versions * Installable to True --- base_multi_image/README.rst | 6 +++--- base_multi_image/__manifest__.py | 7 ++++--- base_multi_image/hooks.py | 6 +++--- base_multi_image/i18n/am.po | 2 +- base_multi_image/i18n/bg.po | 2 +- base_multi_image/i18n/ca.po | 2 +- base_multi_image/i18n/de.po | 2 +- base_multi_image/i18n/el_GR.po | 2 +- base_multi_image/i18n/es.po | 2 +- base_multi_image/i18n/es_ES.po | 2 +- base_multi_image/i18n/fi.po | 2 +- base_multi_image/i18n/fr.po | 2 +- base_multi_image/i18n/fr_CA.po | 2 +- base_multi_image/i18n/gl.po | 2 +- base_multi_image/i18n/hr.po | 2 +- base_multi_image/i18n/hr_HR.po | 2 +- base_multi_image/i18n/it.po | 2 +- base_multi_image/i18n/nl.po | 2 +- base_multi_image/i18n/pt.po | 2 +- base_multi_image/i18n/pt_BR.po | 2 +- base_multi_image/i18n/pt_PT.po | 2 +- base_multi_image/i18n/ru.po | 2 +- base_multi_image/i18n/sl.po | 2 +- base_multi_image/i18n/sv.po | 2 +- base_multi_image/i18n/tr.po | 2 +- base_multi_image/i18n/zh_CN.po | 2 +- base_multi_image/models/image.py | 4 ++-- base_multi_image/models/owner.py | 2 +- base_multi_image/views/image_view.xml | 6 ++---- 29 files changed, 38 insertions(+), 39 deletions(-) diff --git a/base_multi_image/README.rst b/base_multi_image/README.rst index 8e8217106..df87cf021 100644 --- a/base_multi_image/README.rst +++ b/base_multi_image/README.rst @@ -63,7 +63,7 @@ To develop a module based on this one: ``product_multi_image`` module does:: try: - from openerp.addons.base_multi_image.hooks import ( + from odoo.addons.base_multi_image.hooks import ( pre_init_hook_for_submodules, uninstall_hook_for_submodules, ) @@ -85,7 +85,7 @@ To develop a module based on this one: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/9.0 + :target: https://runbot.odoo-community.org/runbot/149/10.0 Known issues / Roadmap ====================== @@ -104,7 +104,7 @@ help us smashing it by providing a detailed and welcomed `feedback `_. +10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Credits ======= diff --git a/base_multi_image/__manifest__.py b/base_multi_image/__manifest__.py index d951f3c7b..12dd7af96 100644 --- a/base_multi_image/__manifest__.py +++ b/base_multi_image/__manifest__.py @@ -8,15 +8,16 @@ { "name": "Multiple images base", "summary": "Allow multiple images for database objects", - "version": "9.0.1.1.0", - "author": "Serv. Tecnol. Avanzados - Pedro M. Baeza, " + "version": "10.0.1.0.0", + "author": "Tecnativa, " "Antiun Ingeniería, S.L., Sodexis, " + "LasLabs, " "Odoo Community Association (OCA)", "license": "AGPL-3", "website": "http://www.antiun.com", "category": "Tools", "depends": ['base'], - 'installable': False, + 'installable': True, "data": [ "security/ir.model.access.csv", "views/image_view.xml", diff --git a/base_multi_image/hooks.py b/base_multi_image/hooks.py index c92691f12..8ef2c2243 100644 --- a/base_multi_image/hooks.py +++ b/base_multi_image/hooks.py @@ -2,7 +2,7 @@ # © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, SUPERUSER_ID +from odoo import api, SUPERUSER_ID import logging _logger = logging.getLogger(__name__) @@ -66,10 +66,10 @@ def pre_init_hook_for_submodules(cr, model, field): def uninstall_hook_for_submodules(cr, registry, model): """Remove multi-images for a given model. - :param openerp.sql_db.Cursor cr: + :param odoo.sql_db.Cursor cr: Database cursor. - :param openerp.modules.registry.RegistryManager registry: + :param odoo.modules.registry.RegistryManager registry: Database registry, using v7 api. :param str model: diff --git a/base_multi_image/i18n/am.po b/base_multi_image/i18n/am.po index a5c489336..c3742e4e6 100644 --- a/base_multi_image/i18n/am.po +++ b/base_multi_image/i18n/am.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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-09 12:26+0000\n" diff --git a/base_multi_image/i18n/bg.po b/base_multi_image/i18n/bg.po index 7c9be3f57..8162cfe48 100644 --- a/base_multi_image/i18n/bg.po +++ b/base_multi_image/i18n/bg.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-10-04 09:42+0000\n" "PO-Revision-Date: 2016-09-25 14:00+0000\n" diff --git a/base_multi_image/i18n/ca.po b/base_multi_image/i18n/ca.po index 562359b08..3312cd32c 100644 --- a/base_multi_image/i18n/ca.po +++ b/base_multi_image/i18n/ca.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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-09 12:25+0000\n" diff --git a/base_multi_image/i18n/de.po b/base_multi_image/i18n/de.po index eac7ce374..aae0ec471 100644 --- a/base_multi_image/i18n/de.po +++ b/base_multi_image/i18n/de.po @@ -17,7 +17,7 @@ # Thomas A. Jaeger, 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-17 12:15+0000\n" "PO-Revision-Date: 2016-04-22 09:06+0000\n" diff --git a/base_multi_image/i18n/el_GR.po b/base_multi_image/i18n/el_GR.po index 42c18fb3a..b1f5e3367 100644 --- a/base_multi_image/i18n/el_GR.po +++ b/base_multi_image/i18n/el_GR.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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-09 12:25+0000\n" diff --git a/base_multi_image/i18n/es.po b/base_multi_image/i18n/es.po index 263fa8926..e26858d0f 100644 --- a/base_multi_image/i18n/es.po +++ b/base_multi_image/i18n/es.po @@ -19,7 +19,7 @@ # SaFi J. , 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-10-04 09:42+0000\n" "PO-Revision-Date: 2016-10-04 09:43+0000\n" diff --git a/base_multi_image/i18n/es_ES.po b/base_multi_image/i18n/es_ES.po index 0e4b2b38e..5a7005a9f 100644 --- a/base_multi_image/i18n/es_ES.po +++ b/base_multi_image/i18n/es_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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-09 12:25+0000\n" diff --git a/base_multi_image/i18n/fi.po b/base_multi_image/i18n/fi.po index dfbaeda1e..78206285f 100644 --- a/base_multi_image/i18n/fi.po +++ b/base_multi_image/i18n/fi.po @@ -18,7 +18,7 @@ # Rudolf Schnapka , 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-07-09 10:34+0000\n" "PO-Revision-Date: 2016-07-05 18:08+0000\n" diff --git a/base_multi_image/i18n/fr.po b/base_multi_image/i18n/fr.po index 924297ebc..d6e9ebc2c 100644 --- a/base_multi_image/i18n/fr.po +++ b/base_multi_image/i18n/fr.po @@ -17,7 +17,7 @@ # Thomas A. Jaeger, 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-10-04 09:42+0000\n" "PO-Revision-Date: 2016-10-04 09:43+0000\n" diff --git a/base_multi_image/i18n/fr_CA.po b/base_multi_image/i18n/fr_CA.po index 21649e3fa..a42ae534c 100644 --- a/base_multi_image/i18n/fr_CA.po +++ b/base_multi_image/i18n/fr_CA.po @@ -15,7 +15,7 @@ # Wagner Pereira , 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-02 00:57+0000\n" "PO-Revision-Date: 2016-03-31 07:18+0000\n" diff --git a/base_multi_image/i18n/gl.po b/base_multi_image/i18n/gl.po index 3cdcdfa6e..b238f83f9 100644 --- a/base_multi_image/i18n/gl.po +++ b/base_multi_image/i18n/gl.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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-09 12:25+0000\n" diff --git a/base_multi_image/i18n/hr.po b/base_multi_image/i18n/hr.po index 6ee131c55..581a5631d 100644 --- a/base_multi_image/i18n/hr.po +++ b/base_multi_image/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-10-04 09:42+0000\n" "PO-Revision-Date: 2016-10-05 06:35+0000\n" diff --git a/base_multi_image/i18n/hr_HR.po b/base_multi_image/i18n/hr_HR.po index 89fd2949b..b0ff5a0ae 100644 --- a/base_multi_image/i18n/hr_HR.po +++ b/base_multi_image/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-03-31 07:18+0000\n" diff --git a/base_multi_image/i18n/it.po b/base_multi_image/i18n/it.po index ebfe8c8d1..54b635e57 100644 --- a/base_multi_image/i18n/it.po +++ b/base_multi_image/i18n/it.po @@ -15,7 +15,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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-09 12:24+0000\n" diff --git a/base_multi_image/i18n/nl.po b/base_multi_image/i18n/nl.po index ed252d95b..d145932a6 100644 --- a/base_multi_image/i18n/nl.po +++ b/base_multi_image/i18n/nl.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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-17 18:43+0000\n" diff --git a/base_multi_image/i18n/pt.po b/base_multi_image/i18n/pt.po index 6e2e403b7..bce9eb8b1 100644 --- a/base_multi_image/i18n/pt.po +++ b/base_multi_image/i18n/pt.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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-09 12:27+0000\n" diff --git a/base_multi_image/i18n/pt_BR.po b/base_multi_image/i18n/pt_BR.po index a5fa87c87..6ad3d496a 100644 --- a/base_multi_image/i18n/pt_BR.po +++ b/base_multi_image/i18n/pt_BR.po @@ -44,7 +44,7 @@ # Young Kim , 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-07-09 10:34+0000\n" "PO-Revision-Date: 2016-07-05 18:08+0000\n" diff --git a/base_multi_image/i18n/pt_PT.po b/base_multi_image/i18n/pt_PT.po index c791871cc..34a945f9b 100644 --- a/base_multi_image/i18n/pt_PT.po +++ b/base_multi_image/i18n/pt_PT.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-09-10 02:52+0000\n" "PO-Revision-Date: 2016-09-09 12:25+0000\n" diff --git a/base_multi_image/i18n/ru.po b/base_multi_image/i18n/ru.po index 3221bec38..01990751a 100644 --- a/base_multi_image/i18n/ru.po +++ b/base_multi_image/i18n/ru.po @@ -27,7 +27,7 @@ # SaFi J. , 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-02 00:57+0000\n" "PO-Revision-Date: 2016-03-31 07:18+0000\n" diff --git a/base_multi_image/i18n/sl.po b/base_multi_image/i18n/sl.po index e6fd9db89..d099c6da5 100644 --- a/base_multi_image/i18n/sl.po +++ b/base_multi_image/i18n/sl.po @@ -31,7 +31,7 @@ # SEUNGWON , 2014 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-10-04 09:42+0000\n" "PO-Revision-Date: 2016-10-04 09:42+0000\n" diff --git a/base_multi_image/i18n/sv.po b/base_multi_image/i18n/sv.po index ba538d6ff..489a8d03c 100644 --- a/base_multi_image/i18n/sv.po +++ b/base_multi_image/i18n/sv.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 5.0.14\n" -"Report-Msgid-Bugs-To: support@openerp.com\n" +"Report-Msgid-Bugs-To: support@odoo.com\n" "POT-Creation-Date: 2010-11-22 10:19:32+0000\n" "PO-Revision-Date: 2010-11-22 10:19:32+0000\n" "Last-Translator: <>\n" diff --git a/base_multi_image/i18n/tr.po b/base_multi_image/i18n/tr.po index 43902ef77..a8fba4348 100644 --- a/base_multi_image/i18n/tr.po +++ b/base_multi_image/i18n/tr.po @@ -27,7 +27,7 @@ # Yael Terrettaz, 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-02 00:57+0000\n" "PO-Revision-Date: 2016-03-31 07:19+0000\n" diff --git a/base_multi_image/i18n/zh_CN.po b/base_multi_image/i18n/zh_CN.po index 9b72ef774..f572793e1 100644 --- a/base_multi_image/i18n/zh_CN.po +++ b/base_multi_image/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-10-04 09:42+0000\n" "PO-Revision-Date: 2016-10-04 09:42+0000\n" diff --git a/base_multi_image/models/image.py b/base_multi_image/models/image.py index cf8a228ef..9876a6653 100644 --- a/base_multi_image/models/image.py +++ b/base_multi_image/models/image.py @@ -8,8 +8,8 @@ import base64 import urllib import os import logging -from openerp import models, fields, api, exceptions, _ -from openerp import tools +from odoo import models, fields, api, exceptions, _ +from odoo import tools _logger = logging.getLogger(__name__) diff --git a/base_multi_image/models/owner.py b/base_multi_image/models/owner.py index 1f85bc03c..d0236de4c 100644 --- a/base_multi_image/models/owner.py +++ b/base_multi_image/models/owner.py @@ -4,7 +4,7 @@ # © 2015 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import _, api, fields, models, tools +from odoo import _, api, fields, models, tools class Owner(models.AbstractModel): diff --git a/base_multi_image/views/image_view.xml b/base_multi_image/views/image_view.xml index 8b41025ef..d6551c118 100644 --- a/base_multi_image/views/image_view.xml +++ b/base_multi_image/views/image_view.xml @@ -1,6 +1,5 @@ - - + Multi image form @@ -148,5 +147,4 @@ action="image_action" parent="base.menu_custom"/> - - +