Browse Source
[MIG] base_multi_image: Upgrade to v10
* Update openerp to odoo
* Bump versions
* Installable to True
pull/600/head
Dave Lasley
8 years ago
No known key found for this signature in database
GPG Key ID: 7DDBA4BA81B934CF
29 changed files with
38 additions and
39 deletions
-
base_multi_image/README.rst
-
base_multi_image/__manifest__.py
-
base_multi_image/hooks.py
-
base_multi_image/i18n/am.po
-
base_multi_image/i18n/bg.po
-
base_multi_image/i18n/ca.po
-
base_multi_image/i18n/de.po
-
base_multi_image/i18n/el_GR.po
-
base_multi_image/i18n/es.po
-
base_multi_image/i18n/es_ES.po
-
base_multi_image/i18n/fi.po
-
base_multi_image/i18n/fr.po
-
base_multi_image/i18n/fr_CA.po
-
base_multi_image/i18n/gl.po
-
base_multi_image/i18n/hr.po
-
base_multi_image/i18n/hr_HR.po
-
base_multi_image/i18n/it.po
-
base_multi_image/i18n/nl.po
-
base_multi_image/i18n/pt.po
-
base_multi_image/i18n/pt_BR.po
-
base_multi_image/i18n/pt_PT.po
-
base_multi_image/i18n/ru.po
-
base_multi_image/i18n/sl.po
-
base_multi_image/i18n/sv.po
-
base_multi_image/i18n/tr.po
-
base_multi_image/i18n/zh_CN.po
-
base_multi_image/models/image.py
-
base_multi_image/models/owner.py
-
base_multi_image/views/image_view.xml
|
|
@ -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 |
|
|
|
<https://github.com/OCA/ |
|
|
|
server-tools/issues/new?body=module:%20 |
|
|
|
base_multi_image%0Aversion:%20 |
|
|
|
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
|
|
|
10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
|
|
|
|
|
|
|
Credits |
|
|
|
======= |
|
|
|
|
|
@ -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", |
|
|
|
|
|
@ -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: |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
# SaFi J. <safi2266@gmail.com>, 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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -18,7 +18,7 @@ |
|
|
|
# Rudolf Schnapka <rs@techno-flex.de>, 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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -15,7 +15,7 @@ |
|
|
|
# Wagner Pereira <wagner@wagner.pereira.nom.br>, 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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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-10-04 09:42+0000\n" |
|
|
|
"PO-Revision-Date: 2016-10-05 06:35+0000\n" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -15,7 +15,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-09-10 02:52+0000\n" |
|
|
|
"PO-Revision-Date: 2016-09-09 12:24+0000\n" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -44,7 +44,7 @@ |
|
|
|
# Young Kim <youngck.uw@gmail.com>, 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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -27,7 +27,7 @@ |
|
|
|
# SaFi J. <safi2266@gmail.com>, 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" |
|
|
|
|
|
@ -31,7 +31,7 @@ |
|
|
|
# SEUNGWON <baeksw0620@gmail.com>, 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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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" |
|
|
|
|
|
@ -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-10-04 09:42+0000\n" |
|
|
|
"PO-Revision-Date: 2016-10-04 09:42+0000\n" |
|
|
|
|
|
@ -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__) |
|
|
|
|
|
|
|
|
|
@ -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): |
|
|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<openerp> |
|
|
|
<data> |
|
|
|
<odoo> |
|
|
|
|
|
|
|
<record id="image_form_view" model="ir.ui.view"> |
|
|
|
<field name="name">Multi image form</field> |
|
|
@ -148,5 +147,4 @@ |
|
|
|
action="image_action" |
|
|
|
parent="base.menu_custom"/> |
|
|
|
|
|
|
|
</data> |
|
|
|
</openerp> |
|
|
|
</odoo> |