Browse Source

FIX when have a "dead" model that is still in DB

pull/31/head
Alexis de Lattre 8 years ago
committed by Gilles Meyomesse
parent
commit
0a14f27cb2
  1. 36
      base_optional_quick_create/i18n/de.po
  2. 35
      base_optional_quick_create/i18n/es.po
  3. 35
      base_optional_quick_create/i18n/fi.po
  4. 36
      base_optional_quick_create/i18n/hr.po
  5. 35
      base_optional_quick_create/i18n/hr_HR.po
  6. 35
      base_optional_quick_create/i18n/it.po
  7. 35
      base_optional_quick_create/i18n/nb_NO.po
  8. 12
      base_optional_quick_create/i18n/pt_BR.po
  9. 12
      base_optional_quick_create/i18n/sl.po
  10. 35
      base_optional_quick_create/i18n/tr.po
  11. 35
      base_optional_quick_create/i18n/tr_TR.po
  12. 4
      base_optional_quick_create/models/ir_model.py

36
base_optional_quick_create/i18n/de.po

@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Rudolf Schnapka <rs@techno-flex.de>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-10 00:47+0000\n"
"PO-Revision-Date: 2017-05-10 00:47+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr "Unterbinde Schnellanlage"
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr "Kann Schnellanlage nicht ausführen. Verwenden Sie Formularanlage"
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Datenmodelle"

35
base_optional_quick_create/i18n/es.po

@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr ""
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr ""
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modelos"

35
base_optional_quick_create/i18n/fi.po

@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr ""
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr ""
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Mallit"

36
base_optional_quick_create/i18n/hr.po

@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-13 01:00+0000\n"
"PO-Revision-Date: 2017-07-13 01:00+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr\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_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr "Izbjegni brzo kreiranje"
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr "Nije moguće brzo kreiranje, otvaram formu za kreiranje"
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modeli"

35
base_optional_quick_create/i18n/hr_HR.po

@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr_HR\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_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr ""
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr ""
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modeli"

35
base_optional_quick_create/i18n/it.po

@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr ""
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr ""
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modelli"

35
base_optional_quick_create/i18n/nb_NO.po

@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nb_NO\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr ""
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr ""
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modeller"

12
base_optional_quick_create/i18n/pt_BR.po

@ -3,14 +3,14 @@
# * base_optional_quick_create # * base_optional_quick_create
# #
# Translators: # Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-07-30 00:58+0000\n"
"PO-Revision-Date: 2016-07-30 00:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" "Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -24,7 +24,7 @@ msgid "Avoid quick create"
msgstr "Evite criação rápida" msgstr "Evite criação rápida"
#. module: base_optional_quick_create #. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:19
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format #, python-format
msgid "Can't create quickly. Opening create form" msgid "Can't create quickly. Opening create form"
msgstr "Não pode criar rapidamente; Abrindo formulário de criação" msgstr "Não pode criar rapidamente; Abrindo formulário de criação"

12
base_optional_quick_create/i18n/sl.po

@ -3,14 +3,14 @@
# * base_optional_quick_create # * base_optional_quick_create
# #
# Translators: # Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-07-30 00:58+0000\n"
"PO-Revision-Date: 2016-07-30 00:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" "Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -24,7 +24,7 @@ msgid "Avoid quick create"
msgstr "Izogibanje hitremu ustvarjanju" msgstr "Izogibanje hitremu ustvarjanju"
#. module: base_optional_quick_create #. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:19
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format #, python-format
msgid "Can't create quickly. Opening create form" msgid "Can't create quickly. Opening create form"
msgstr "Ne morete hitro ustvariti. Odpiram obrazec za ustvarjanje" msgstr "Ne morete hitro ustvariti. Odpiram obrazec za ustvarjanje"

35
base_optional_quick_create/i18n/tr.po

@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: tr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr ""
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr ""
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Modeller"

35
base_optional_quick_create/i18n/tr_TR.po

@ -0,0 +1,35 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_optional_quick_create
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-05-01 10:38+0000\n"
"PO-Revision-Date: 2017-05-01 10:38+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: tr_TR\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: base_optional_quick_create
#: model:ir.model.fields,field_description:base_optional_quick_create.field_ir_model_avoid_quick_create
msgid "Avoid quick create"
msgstr ""
#. module: base_optional_quick_create
#: code:addons/base_optional_quick_create/models/ir_model.py:21
#, python-format
msgid "Can't create quickly. Opening create form"
msgstr ""
#. module: base_optional_quick_create
#: model:ir.model,name:base_optional_quick_create.model_ir_model
msgid "Models"
msgstr "Tipler"

4
base_optional_quick_create/models/ir_model.py

@ -25,7 +25,9 @@ class IrModel(models.Model):
if model.avoid_quick_create: if model.avoid_quick_create:
model_name = model.model model_name = model.model
model_obj = self.env.get(model_name) model_obj = self.env.get(model_name)
if model_name and not hasattr(model_obj, 'check_quick_create'):
if (
not isinstance(model_obj, type(None)) and
not hasattr(model_obj, 'check_quick_create')):
model_obj._patch_method('name_create', _wrap_name_create()) model_obj._patch_method('name_create', _wrap_name_create())
model_obj.check_quick_create = True model_obj.check_quick_create = True
return True return True

Loading…
Cancel
Save