From f73a38af83f8c300d10742df6ee5a29c9ecca8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Pigeon?= Date: Wed, 10 Jan 2018 14:36:49 +0100 Subject: [PATCH] [CHG] prevent to declare fiscal month and/or year for all companies in a multi-company context OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex --- account_fiscal_month/i18n/hr.po | 10 ++--- account_fiscal_month/i18n/lt.po | 45 ++++++++++++++++++++++ account_fiscal_month/i18n/nl.po | 45 ++++++++++++++++++++++ account_fiscal_month/i18n/nl_NL.po | 45 ++++++++++++++++++++++ account_fiscal_month/models/res_company.py | 4 +- 5 files changed, 143 insertions(+), 6 deletions(-) create mode 100644 account_fiscal_month/i18n/lt.po create mode 100644 account_fiscal_month/i18n/nl.po create mode 100644 account_fiscal_month/i18n/nl_NL.po diff --git a/account_fiscal_month/i18n/hr.po b/account_fiscal_month/i18n/hr.po index af37ec6d..1bfd6215 100644 --- a/account_fiscal_month/i18n/hr.po +++ b/account_fiscal_month/i18n/hr.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-11-28 23:23+0000\n" -"PO-Revision-Date: 2017-11-28 23:23+0000\n" +"POT-Creation-Date: 2018-02-23 01:41+0000\n" +"PO-Revision-Date: 2018-02-23 01:41+0000\n" "Last-Translator: Bole , 2017\n" "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" "MIME-Version: 1.0\n" @@ -26,18 +26,18 @@ msgstr "Poduzeća" #. module: account_fiscal_month #: model:date.range.type,name:account_fiscal_month.date_range_fiscal_month msgid "Fiscal month" -msgstr "" +msgstr "Fiskalni mjesec" #. module: account_fiscal_month #: model:ir.model.fields,field_description:account_fiscal_month.field_date_range_type_fiscal_month msgid "Is fiscal month?" -msgstr "" +msgstr "Je fiskalni mjesec?" #. module: account_fiscal_month #: code:addons/account_fiscal_month/models/date_range_type.py:20 #, python-format msgid "You can't delete date range type: Fiscal month" -msgstr "" +msgstr "Nije moguće brisanje raspona tipa \"Fiskalni mjesec\"" #. module: account_fiscal_month #: model:ir.model,name:account_fiscal_month.model_date_range_type diff --git a/account_fiscal_month/i18n/lt.po b/account_fiscal_month/i18n/lt.po new file mode 100644 index 00000000..ebce6100 --- /dev/null +++ b/account_fiscal_month/i18n/lt.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_fiscal_month +# +# Translators: +# Viktoras Norkus , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-25 11:46+0000\n" +"PO-Revision-Date: 2018-01-25 11:46+0000\n" +"Last-Translator: Viktoras Norkus , 2018\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lt\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: account_fiscal_month +#: model:ir.model,name:account_fiscal_month.model_res_company +msgid "Companies" +msgstr "Įmonės" + +#. module: account_fiscal_month +#: model:date.range.type,name:account_fiscal_month.date_range_fiscal_month +msgid "Fiscal month" +msgstr "" + +#. module: account_fiscal_month +#: model:ir.model.fields,field_description:account_fiscal_month.field_date_range_type_fiscal_month +msgid "Is fiscal month?" +msgstr "" + +#. module: account_fiscal_month +#: code:addons/account_fiscal_month/models/date_range_type.py:20 +#, python-format +msgid "You can't delete date range type: Fiscal month" +msgstr "" + +#. module: account_fiscal_month +#: model:ir.model,name:account_fiscal_month.model_date_range_type +msgid "date.range.type" +msgstr "" diff --git a/account_fiscal_month/i18n/nl.po b/account_fiscal_month/i18n/nl.po new file mode 100644 index 00000000..4d8c1514 --- /dev/null +++ b/account_fiscal_month/i18n/nl.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_fiscal_month +# +# Translators: +# Frank Schellenberg , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-25 11:46+0000\n" +"PO-Revision-Date: 2018-01-25 11:46+0000\n" +"Last-Translator: Frank Schellenberg , 2018\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_fiscal_month +#: model:ir.model,name:account_fiscal_month.model_res_company +msgid "Companies" +msgstr "Bedrijven" + +#. module: account_fiscal_month +#: model:date.range.type,name:account_fiscal_month.date_range_fiscal_month +msgid "Fiscal month" +msgstr "" + +#. module: account_fiscal_month +#: model:ir.model.fields,field_description:account_fiscal_month.field_date_range_type_fiscal_month +msgid "Is fiscal month?" +msgstr "" + +#. module: account_fiscal_month +#: code:addons/account_fiscal_month/models/date_range_type.py:20 +#, python-format +msgid "You can't delete date range type: Fiscal month" +msgstr "" + +#. module: account_fiscal_month +#: model:ir.model,name:account_fiscal_month.model_date_range_type +msgid "date.range.type" +msgstr "" diff --git a/account_fiscal_month/i18n/nl_NL.po b/account_fiscal_month/i18n/nl_NL.po new file mode 100644 index 00000000..521285d9 --- /dev/null +++ b/account_fiscal_month/i18n/nl_NL.po @@ -0,0 +1,45 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_fiscal_month +# +# Translators: +# Frank Schellenberg , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-25 11:46+0000\n" +"PO-Revision-Date: 2018-01-25 11:46+0000\n" +"Last-Translator: Frank Schellenberg , 2018\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl_NL\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_fiscal_month +#: model:ir.model,name:account_fiscal_month.model_res_company +msgid "Companies" +msgstr "Bedrijven" + +#. module: account_fiscal_month +#: model:date.range.type,name:account_fiscal_month.date_range_fiscal_month +msgid "Fiscal month" +msgstr "" + +#. module: account_fiscal_month +#: model:ir.model.fields,field_description:account_fiscal_month.field_date_range_type_fiscal_month +msgid "Is fiscal month?" +msgstr "" + +#. module: account_fiscal_month +#: code:addons/account_fiscal_month/models/date_range_type.py:20 +#, python-format +msgid "You can't delete date range type: Fiscal month" +msgstr "" + +#. module: account_fiscal_month +#: model:ir.model,name:account_fiscal_month.model_date_range_type +msgid "date.range.type" +msgstr "" diff --git a/account_fiscal_month/models/res_company.py b/account_fiscal_month/models/res_company.py index 140acd60..d58531da 100644 --- a/account_fiscal_month/models/res_company.py +++ b/account_fiscal_month/models/res_company.py @@ -17,5 +17,7 @@ class ResCompany(models.Model): ('type_id', '=', fm_id.id), ('date_start', '<=', date_str), ('date_end', '>=', date_str), + '|', ('company_id', '=', self.id), - ]) + ('company_id', '=', False), + ], limit=1, order='company_id asc')