Browse Source

Merge pull request #600 from laslabs/release/10.0/base_multi_image

[MIG][10.0] base_multi_image
pull/615/head
Pedro M. Baeza 8 years ago
committed by GitHub
parent
commit
7ad2a975af
  1. 15
      base_multi_image/README.rst
  2. 7
      base_multi_image/__manifest__.py
  3. 6
      base_multi_image/hooks.py
  4. 2
      base_multi_image/i18n/am.po
  5. 279
      base_multi_image/i18n/bg.po
  6. 2
      base_multi_image/i18n/ca.po
  7. 2
      base_multi_image/i18n/de.po
  8. 2
      base_multi_image/i18n/el_GR.po
  9. 50
      base_multi_image/i18n/es.po
  10. 2
      base_multi_image/i18n/es_ES.po
  11. 2
      base_multi_image/i18n/fi.po
  12. 10
      base_multi_image/i18n/fr.po
  13. 2
      base_multi_image/i18n/fr_CA.po
  14. 2
      base_multi_image/i18n/gl.po
  15. 75
      base_multi_image/i18n/hr.po
  16. 2
      base_multi_image/i18n/hr_HR.po
  17. 2
      base_multi_image/i18n/it.po
  18. 2
      base_multi_image/i18n/nl.po
  19. 2
      base_multi_image/i18n/pt.po
  20. 2
      base_multi_image/i18n/pt_BR.po
  21. 2
      base_multi_image/i18n/pt_PT.po
  22. 2
      base_multi_image/i18n/ru.po
  23. 49
      base_multi_image/i18n/sl.po
  24. 2
      base_multi_image/i18n/sv.po
  25. 2
      base_multi_image/i18n/tr.po
  26. 12
      base_multi_image/i18n/zh_CN.po
  27. 4
      base_multi_image/models/image.py
  28. 2
      base_multi_image/models/owner.py
  29. 6
      base_multi_image/views/image_view.xml

15
base_multi_image/README.rst

@ -41,7 +41,8 @@ To develop a module based on this one:
_name = "my.model.name"
_inherit = ["my.model.name", "base_multi_image.owner"]
# If you need this, you will need ``post_init_hook_for_submodules``
# If you need this, you will need ``pre_init_hook_for_submodules`` and
``uninstall_hook_for_submodules`` as detailed below.
old_image_field = fields.Binary(related="image_main", store=False)
* Somewhere in the owner view, add::
@ -62,9 +63,11 @@ To develop a module based on this one:
``product_multi_image`` module does::
try:
from openerp.addons.base_multi_image.hooks import \
pre_init_hook_for_submodules
except:
from odoo.addons.base_multi_image.hooks import (
pre_init_hook_for_submodules,
uninstall_hook_for_submodules,
)
except ImportError:
pass
@ -82,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
======================
@ -101,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
=======

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

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

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

279
base_multi_image/i18n/bg.po

@ -0,0 +1,279 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_multi_image
#
# Translators:
msgid ""
msgstr ""
"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"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Bulgarian (http://www.transifex.com/oca/OCA-server-tools-9-0/language/bg/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: bg\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:22
#: sql_constraint:base_multi_image.image:0
#, python-format
msgid "A document can have only one image with the same name."
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_attachment_id
msgid "Attachment"
msgstr ""
#. module: base_multi_image
#: model:ir.actions.act_window,help:base_multi_image.image_action
msgid "Click to add an image attached to an specific record."
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_comments
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Comments"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_create_uid
msgid "Created by"
msgstr "Създадено от"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_create_date
msgid "Created on"
msgstr "Създадено на"
#. module: base_multi_image
#: selection:base_multi_image.image,storage:0
msgid "Database"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_display_name
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_display_name
msgid "Display Name"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_extension
msgid "File extension"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_filename
msgid "Filename"
msgstr ""
#. module: base_multi_image
#: selection:base_multi_image.image,storage:0
msgid "Filestore"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_image_main
msgid "Full-sized image"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_id
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_id
msgid "ID"
msgstr "ID"
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Image"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_path
#: model:ir.model.fields,help:base_multi_image.field_base_multi_image_image_path
msgid "Image path"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_url
msgid "Image remote URL"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_file_db_store
msgid "Image stored in database"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_name
msgid "Image title"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_image_ids
#: model:ir.ui.view,arch_db:base_multi_image.image_tree_view
msgid "Images"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image___last_update
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner___last_update
msgid "Last Modified on"
msgstr "Последно обновено на"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_write_uid
msgid "Last Updated by"
msgstr "Последно обновено от"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_write_date
msgid "Last Updated on"
msgstr "Последно обновено на"
#. module: base_multi_image
#: code:addons/base_multi_image/models/owner.py:73
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_image_main
#, python-format
msgid "Main image"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_image_main_medium
msgid "Medium image"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_image_medium
msgid "Medium-sized image"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,help:base_multi_image.field_base_multi_image_image_image_medium
msgid ""
"Medium-sized image. It is automatically resized as a 128 x 128 px image, "
"with aspect ratio preserved, only when the image exceeds one of those sizes."
" Use this field in form views or kanban views."
msgstr ""
#. module: base_multi_image
#: model:ir.actions.act_window,name:base_multi_image.image_action
#: model:ir.ui.menu,name:base_multi_image.image_menu
msgid "Multi images"
msgstr ""
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Name"
msgstr "Име"
#. module: base_multi_image
#: selection:base_multi_image.image,storage:0
msgid "OS file"
msgstr ""
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Options"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_id
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Owner"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_model
msgid "Owner model"
msgstr ""
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Preview"
msgstr ""
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_kanban_view
msgid "Product Images"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_ref_id
msgid "Referenced Owner"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_sequence
msgid "Sequence"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_show_technical
msgid "Show technical"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_image_main_small
msgid "Small image"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_image_small
msgid "Small-sized image"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,help:base_multi_image.field_base_multi_image_image_image_small
msgid ""
"Small-sized image. It is automatically resized as a 64 x 64 px image, with "
"aspect ratio preserved. Use this field anywhere a small image is required."
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_storage
msgid "Storage"
msgstr ""
#. module: base_multi_image
#: selection:base_multi_image.image,storage:0
msgid "URL"
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:205
#, python-format
msgid "You must provide a file path for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:199
#, python-format
msgid "You must provide an URL for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:211
#, python-format
msgid "You must provide an attached file for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:217
#, python-format
msgid "You must provide an attachment for the image."
msgstr ""
#. module: base_multi_image
#: model:ir.model,name:base_multi_image.model_base_multi_image_image
msgid "base_multi_image.image"
msgstr ""
#. module: base_multi_image
#: model:ir.model,name:base_multi_image.model_base_multi_image_owner
msgid "base_multi_image.owner"
msgstr ""

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

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

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

50
base_multi_image/i18n/es.po

@ -3,11 +3,12 @@
# * base_multi_image
#
# Translators:
# Ahmet Altınışık <aaltinisik@altinkaya.com.tr>, 2015
# Ahmet Altinisik <aaltinisik@altinkaya.com.tr>, 2015
# Alejandro Santana <alejandrosantana@anubia.es>, 2015
# Antonio Trueba, 2016
# Armando Vulcano Junior <vulcano@uol.com.br>, 2015
# CarlesAntoli <carlesantoli@hotmail.com>, 2015
# Carles Antoli <carlesantoli@hotmail.com>, 2015
# Carles Antoli <carlesantoli@hotmail.com>, 2015
# danimaribeiro <danimaribeiro@gmail.com>, 2015-2016
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012,2014
# Hotellook, 2014
@ -18,10 +19,10 @@
# 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:19+0000\n"
"POT-Creation-Date: 2016-10-04 09:42+0000\n"
"PO-Revision-Date: 2016-10-04 09:43+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-server-tools-9-0/language/es/)\n"
"MIME-Version: 1.0\n"
@ -37,6 +38,11 @@ msgstr ""
msgid "A document can have only one image with the same name."
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_attachment_id
msgid "Attachment"
msgstr ""
#. module: base_multi_image
#: model:ir.actions.act_window,help:base_multi_image.image_action
msgid "Click to add an image attached to an specific record."
@ -79,6 +85,11 @@ msgstr ""
msgid "Filename"
msgstr ""
#. module: base_multi_image
#: selection:base_multi_image.image,storage:0
msgid "Filestore"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_image_main
msgid "Full-sized image"
@ -205,6 +216,11 @@ msgstr ""
msgid "Product Images"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_ref_id
msgid "Referenced Owner"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_sequence
msgid "Sequence"
@ -240,6 +256,30 @@ msgstr ""
#. module: base_multi_image
#: selection:base_multi_image.image,storage:0
msgid "URL"
msgstr "URL"
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:205
#, python-format
msgid "You must provide a file path for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:199
#, python-format
msgid "You must provide an URL for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:211
#, python-format
msgid "You must provide an attached file for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:217
#, python-format
msgid "You must provide an attachment for the image."
msgstr ""
#. module: base_multi_image

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

2
base_multi_image/i18n/fi.po

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

10
base_multi_image/i18n/fr.po

@ -17,10 +17,10 @@
# 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-09-10 02:52+0000\n"
"PO-Revision-Date: 2016-09-16 21:46+0000\n"
"POT-Creation-Date: 2016-10-04 09:42+0000\n"
"PO-Revision-Date: 2016-10-04 09:43+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: French (http://www.transifex.com/oca/OCA-server-tools-9-0/language/fr/)\n"
"MIME-Version: 1.0\n"
@ -39,7 +39,7 @@ msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_attachment_id
msgid "Attachment"
msgstr ""
msgstr "Pièce jointe"
#. module: base_multi_image
#: model:ir.actions.act_window,help:base_multi_image.image_action
@ -197,7 +197,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_id
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Owner"
msgstr ""
msgstr "Propriétaire"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_model

2
base_multi_image/i18n/fr_CA.po

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

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

75
base_multi_image/i18n/hr.po

@ -6,10 +6,10 @@
# 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 11:06+0000\n"
"POT-Creation-Date: 2016-10-04 09:42+0000\n"
"PO-Revision-Date: 2016-10-05 06:35+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>\n"
"Language-Team: Croatian (http://www.transifex.com/oca/OCA-server-tools-9-0/language/hr/)\n"
"MIME-Version: 1.0\n"
@ -25,6 +25,11 @@ msgstr ""
msgid "A document can have only one image with the same name."
msgstr "Dokument može imati samo jednu sliku sa istim nazivom."
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_attachment_id
msgid "Attachment"
msgstr "Privitak"
#. module: base_multi_image
#: model:ir.actions.act_window,help:base_multi_image.image_action
msgid "Click to add an image attached to an specific record."
@ -67,6 +72,11 @@ msgstr "extenzija datoteke"
msgid "Filename"
msgstr "naziv datoteke"
#. module: base_multi_image
#: selection:base_multi_image.image,storage:0
msgid "Filestore"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_image_main
msgid "Full-sized image"
@ -92,23 +102,23 @@ msgstr "putanja slike"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_url
msgid "Image remote URL"
msgstr ""
msgstr "Udaljeni URL slike"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_file_db_store
msgid "Image stored in database"
msgstr ""
msgstr "Slike pohranjene u bazi"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_name
msgid "Image title"
msgstr ""
msgstr "Naslov slike"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_image_ids
#: model:ir.ui.view,arch_db:base_multi_image.image_tree_view
msgid "Images"
msgstr ""
msgstr "Slike"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image___last_update
@ -119,29 +129,29 @@ msgstr "Zadnje modificirano"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_write_uid
msgid "Last Updated by"
msgstr ""
msgstr "Zadnji ažurirao"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_write_date
msgid "Last Updated on"
msgstr ""
msgstr "Zadnje ažuriranje"
#. module: base_multi_image
#: code:addons/base_multi_image/models/owner.py:73
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_image_main
#, python-format
msgid "Main image"
msgstr ""
msgstr "Glavna slika"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_image_main_medium
msgid "Medium image"
msgstr ""
msgstr "Srednja slika"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_image_medium
msgid "Medium-sized image"
msgstr ""
msgstr "Slika srednje veličine"
#. module: base_multi_image
#: model:ir.model.fields,help:base_multi_image.field_base_multi_image_image_image_medium
@ -155,7 +165,7 @@ msgstr ""
#: model:ir.actions.act_window,name:base_multi_image.image_action
#: model:ir.ui.menu,name:base_multi_image.image_menu
msgid "Multi images"
msgstr ""
msgstr "Višestruke slike"
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
@ -170,27 +180,32 @@ msgstr ""
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Options"
msgstr ""
msgstr "Opcije"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_id
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Owner"
msgstr ""
msgstr "Vlasnik"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_model
msgid "Owner model"
msgstr ""
msgstr "Model vlasnika"
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
msgid "Preview"
msgstr ""
msgstr "Predpregled"
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_kanban_view
msgid "Product Images"
msgstr "Slike proizvoda"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_ref_id
msgid "Referenced Owner"
msgstr ""
#. module: base_multi_image
@ -206,7 +221,7 @@ msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_image_main_small
msgid "Small image"
msgstr ""
msgstr "Mala slika"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_image_small
@ -230,6 +245,30 @@ msgstr ""
msgid "URL"
msgstr "URL"
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:205
#, python-format
msgid "You must provide a file path for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:199
#, python-format
msgid "You must provide an URL for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:211
#, python-format
msgid "You must provide an attached file for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:217
#, python-format
msgid "You must provide an attachment for the image."
msgstr ""
#. module: base_multi_image
#: model:ir.model,name:base_multi_image.model_base_multi_image_image
msgid "base_multi_image.image"

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

2
base_multi_image/i18n/it.po

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

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

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

2
base_multi_image/i18n/pt_BR.po

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

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

2
base_multi_image/i18n/ru.po

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

49
base_multi_image/i18n/sl.po

@ -6,9 +6,11 @@
# Antonio Trueba, 2016
# Armando Vulcano Junior <vulcano@uol.com.br>, 2015
# bossnm11 <bossnm11@gmail.com>, 2014
# CarlesAntoli <carlesantoli@hotmail.com>, 2015
# Carles Antoli <carlesantoli@hotmail.com>, 2015
# Carles Antoli <carlesantoli@hotmail.com>, 2015
# Chanseok <kcsgoodboy@gmail.com>, 2014
# Christophe CHAUVET <christophe.chauvet@gmail.com>, 2015
# Christophe CHAUVET <christophe.chauvet@gmail.com>, 2015
# danimaribeiro <danimaribeiro@gmail.com>, 2016
# FIRST AUTHOR <EMAIL@ADDRESS>, 2012,2014
# Hotellook, 2014
@ -29,10 +31,10 @@
# 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-04-02 00:57+0000\n"
"PO-Revision-Date: 2016-03-31 07:19+0000\n"
"POT-Creation-Date: 2016-10-04 09:42+0000\n"
"PO-Revision-Date: 2016-10-04 09:42+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-server-tools-9-0/language/sl/)\n"
"MIME-Version: 1.0\n"
@ -48,6 +50,11 @@ msgstr ""
msgid "A document can have only one image with the same name."
msgstr "Dokument lahko vsebuje le eno sliko z istim nazivom."
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_attachment_id
msgid "Attachment"
msgstr "Priponka"
#. module: base_multi_image
#: model:ir.actions.act_window,help:base_multi_image.image_action
msgid "Click to add an image attached to an specific record."
@ -90,6 +97,11 @@ msgstr "Končnica datoteke"
msgid "Filename"
msgstr "Naziv datoteke"
#. module: base_multi_image
#: selection:base_multi_image.image,storage:0
msgid "Filestore"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_image_main
msgid "Full-sized image"
@ -216,6 +228,11 @@ msgstr "Predogled"
msgid "Product Images"
msgstr "Slike proizvoda"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_owner_ref_id
msgid "Referenced Owner"
msgstr ""
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_sequence
msgid "Sequence"
@ -253,6 +270,30 @@ msgstr "Shranjevalni medij"
msgid "URL"
msgstr "URL"
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:205
#, python-format
msgid "You must provide a file path for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:199
#, python-format
msgid "You must provide an URL for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:211
#, python-format
msgid "You must provide an attached file for the image."
msgstr ""
#. module: base_multi_image
#: code:addons/base_multi_image/models/image.py:217
#, python-format
msgid "You must provide an attachment for the image."
msgstr ""
#. module: base_multi_image
#: model:ir.model,name:base_multi_image.model_base_multi_image_image
msgid "base_multi_image.image"

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

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

12
base_multi_image/i18n/zh_CN.po

@ -6,10 +6,10 @@
# 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:45+0000\n"
"POT-Creation-Date: 2016-10-04 09:42+0000\n"
"PO-Revision-Date: 2016-10-04 09:42+0000\n"
"Last-Translator: Jeffery Chenn <jeffery9@gmail.com>\n"
"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-server-tools-9-0/language/zh_CN/)\n"
"MIME-Version: 1.0\n"
@ -86,7 +86,7 @@ msgstr ""
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_id
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_owner_id
msgid "ID"
msgstr ""
msgstr "ID"
#. module: base_multi_image
#: model:ir.ui.view,arch_db:base_multi_image.image_form_view
@ -129,12 +129,12 @@ msgstr "最后修改时间"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_write_uid
msgid "Last Updated by"
msgstr ""
msgstr "最后更新者"
#. module: base_multi_image
#: model:ir.model.fields,field_description:base_multi_image.field_base_multi_image_image_write_date
msgid "Last Updated on"
msgstr ""
msgstr "上次更新日期"
#. module: base_multi_image
#: code:addons/base_multi_image/models/owner.py:73

4
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__)

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

6
base_multi_image/views/image_view.xml

@ -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>
Loading…
Cancel
Save