diff --git a/base_optional_quick_create/i18n/de.po b/base_optional_quick_create/i18n/de.po new file mode 100644 index 0000000..f70b3d3 --- /dev/null +++ b/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 , 2017 +# Rudolf Schnapka , 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 , 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" diff --git a/base_optional_quick_create/i18n/es.po b/base_optional_quick_create/i18n/es.po new file mode 100644 index 0000000..19294f1 --- /dev/null +++ b/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 , 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 , 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" diff --git a/base_optional_quick_create/i18n/fi.po b/base_optional_quick_create/i18n/fi.po new file mode 100644 index 0000000..119feb5 --- /dev/null +++ b/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 , 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 , 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" diff --git a/base_optional_quick_create/i18n/hr.po b/base_optional_quick_create/i18n/hr.po new file mode 100644 index 0000000..2bf005d --- /dev/null +++ b/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 , 2017 +# Bole , 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 , 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" diff --git a/base_optional_quick_create/i18n/hr_HR.po b/base_optional_quick_create/i18n/hr_HR.po new file mode 100644 index 0000000..1504035 --- /dev/null +++ b/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 , 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 , 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" diff --git a/base_optional_quick_create/i18n/it.po b/base_optional_quick_create/i18n/it.po new file mode 100644 index 0000000..c9b6712 --- /dev/null +++ b/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 , 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 , 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" diff --git a/base_optional_quick_create/i18n/nb_NO.po b/base_optional_quick_create/i18n/nb_NO.po new file mode 100644 index 0000000..53a65d6 --- /dev/null +++ b/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 , 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 , 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" diff --git a/base_optional_quick_create/i18n/pt_BR.po b/base_optional_quick_create/i18n/pt_BR.po index a26f742..eebc65d 100644 --- a/base_optional_quick_create/i18n/pt_BR.po +++ b/base_optional_quick_create/i18n/pt_BR.po @@ -3,14 +3,14 @@ # * base_optional_quick_create # # Translators: -# OCA Transbot , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0\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 , 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 , 2017\n" "Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -24,7 +24,7 @@ msgid "Avoid quick create" msgstr "Evite criação rápida" #. 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 msgid "Can't create quickly. Opening create form" msgstr "Não pode criar rapidamente; Abrindo formulário de criação" diff --git a/base_optional_quick_create/i18n/sl.po b/base_optional_quick_create/i18n/sl.po index 7897730..cd4fc77 100644 --- a/base_optional_quick_create/i18n/sl.po +++ b/base_optional_quick_create/i18n/sl.po @@ -3,14 +3,14 @@ # * base_optional_quick_create # # Translators: -# OCA Transbot , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 9.0c\n" +"Project-Id-Version: Odoo Server 10.0\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 , 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 , 2017\n" "Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -24,7 +24,7 @@ msgid "Avoid quick create" msgstr "Izogibanje hitremu ustvarjanju" #. 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 msgid "Can't create quickly. Opening create form" msgstr "Ne morete hitro ustvariti. Odpiram obrazec za ustvarjanje" diff --git a/base_optional_quick_create/i18n/tr.po b/base_optional_quick_create/i18n/tr.po new file mode 100644 index 0000000..36836df --- /dev/null +++ b/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 , 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 , 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" diff --git a/base_optional_quick_create/i18n/tr_TR.po b/base_optional_quick_create/i18n/tr_TR.po new file mode 100644 index 0000000..2225711 --- /dev/null +++ b/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 , 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 , 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" diff --git a/base_optional_quick_create/models/ir_model.py b/base_optional_quick_create/models/ir_model.py index 53df25d..8bbd3e5 100644 --- a/base_optional_quick_create/models/ir_model.py +++ b/base_optional_quick_create/models/ir_model.py @@ -25,7 +25,9 @@ class IrModel(models.Model): if model.avoid_quick_create: model_name = model.model 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.check_quick_create = True return True