Skip to content

Commit

Permalink
Update module test to not raise errors. (OCA#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
feketemihai authored and Ernesto Tejeda committed Jan 17, 2022
1 parent fdc4fad commit eec357c
Show file tree
Hide file tree
Showing 11 changed files with 168 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_analytic_distribution_required
#: model:ir.model,name:account_analytic_distribution_required.model_account_account_type
msgid "Account Type"
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:16
#, python-format
msgid "Always (analytic account or distribution)"
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:14
#, python-format
msgid "Always (analytic distribution)"
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:29
#, python-format
msgid "Analytic account and analytic distribution are mutually exclusive"
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:47
#, python-format
msgid "Analytic policy is set to 'Always (analytic account or distribution)' with account %s '%s' but the analytic distribution and the analytic account are missing in the account move line with label '%s'."
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:36
#, python-format
msgid "Analytic policy is set to 'Always (analytic distribution)' with account %s '%s' but the analytic distribution is missing in the account move line with label '%s'."
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:58
#, python-format
msgid "Analytic policy is set to 'Never' with account %s '%s' but the account move line with label '%s' has an analytic distribution %s '%s'."
msgstr ""

#. module: account_analytic_distribution_required
#: model:ir.model,name:account_analytic_distribution_required.model_account_move_line
msgid "Journal Item"
msgstr ""

7 changes: 4 additions & 3 deletions account_analytic_distribution_required/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
Expand All @@ -12,11 +12,12 @@ msgstr ""
"PO-Revision-Date: 2017-06-21 02:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: account_analytic_distribution_required
#: model:ir.model,name:account_analytic_distribution_required.model_account_account_type
Expand Down
4 changes: 2 additions & 2 deletions account_analytic_distribution_required/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
Expand All @@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-06-21 02:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: account_analytic_distribution_required
Expand Down
11 changes: 6 additions & 5 deletions account_analytic_distribution_required/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
#
# Translators:
# Lukáš Spurný <lukasspurny8@gmail.com>, 2018
msgid ""
Expand All @@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2018-02-21 03:54+0000\n"
"PO-Revision-Date: 2018-02-21 03:54+0000\n"
"Last-Translator: Lukáš Spurný <lukasspurny8@gmail.com>, 2018\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/teams/23907/cs_CZ/)\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/"
"teams/23907/cs_CZ/)\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: cs_CZ\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: account_analytic_distribution_required
Expand Down Expand Up @@ -61,8 +62,8 @@ msgid ""
"'%s' but the analytic distribution is missing in the account move line with "
"label '%s'."
msgstr ""
"Analytická politika je nastavena na hodnotu \"Vždy (analytická distribuce)\""
" s účtem %s \"%s\", ale v řádku přesunu účtu s popisem \"%s\" chybí "
"Analytická politika je nastavena na hodnotu \"Vždy (analytická distribuce)\" "
"s účtem %s \"%s\", ale v řádku přesunu účtu s popisem \"%s\" chybí "
"analytická distribuce."

#. module: account_analytic_distribution_required
Expand Down
4 changes: 2 additions & 2 deletions account_analytic_distribution_required/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2017
Expand All @@ -13,10 +13,10 @@ msgstr ""
"PO-Revision-Date: 2017-06-21 02:39+0000\n"
"Last-Translator: Pedro M. Baeza <pedro.baeza@gmail.com>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: 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: account_analytic_distribution_required
Expand Down
4 changes: 2 additions & 2 deletions account_analytic_distribution_required/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
Expand All @@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-06-21 02:39+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: account_analytic_distribution_required
Expand Down
7 changes: 4 additions & 3 deletions account_analytic_distribution_required/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
#
# Translators:
# Bole <bole@dajmi5.com>, 2018
msgid ""
Expand All @@ -12,11 +12,12 @@ msgstr ""
"PO-Revision-Date: 2018-02-21 03:54+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2018\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: 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"
"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: account_analytic_distribution_required
#: model:ir.model,name:account_analytic_distribution_required.model_account_account_type
Expand Down
10 changes: 6 additions & 4 deletions account_analytic_distribution_required/i18n/hr_HR.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
#
# Translators:
# Bole <bole@dajmi5.com>, 2017
msgid ""
Expand All @@ -11,12 +11,14 @@ msgstr ""
"POT-Creation-Date: 2017-06-30 02:40+0000\n"
"PO-Revision-Date: 2017-06-30 02:40+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
"hr_HR/)\n"
"Language: 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"
"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: account_analytic_distribution_required
#: model:ir.model,name:account_analytic_distribution_required.model_account_account_type
Expand Down
73 changes: 73 additions & 0 deletions account_analytic_distribution_required/i18n/pt.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
# Translators:
# Pedro Castro Silva <pedrocs@exo.pt>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-04-06 22:08+0000\n"
"PO-Revision-Date: 2018-04-06 22:08+0000\n"
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>, 2018\n"
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: account_analytic_distribution_required
#: model:ir.model,name:account_analytic_distribution_required.model_account_account_type
msgid "Account Type"
msgstr "Tipo de Conta"

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:16
#, python-format
msgid "Always (analytic account or distribution)"
msgstr "Sempre (conta analítica ou distribuição)"

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:14
#, python-format
msgid "Always (analytic distribution)"
msgstr "Sempre (conta analítica)"

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:29
#, python-format
msgid "Analytic account and analytic distribution are mutually exclusive"
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:47
#, python-format
msgid ""
"Analytic policy is set to 'Always (analytic account or distribution)' with "
"account %s '%s' but the analytic distribution and the analytic account are "
"missing in the account move line with label '%s'."
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:36
#, python-format
msgid ""
"Analytic policy is set to 'Always (analytic distribution)' with account %s "
"'%s' but the analytic distribution is missing in the account move line with "
"label '%s'."
msgstr ""

#. module: account_analytic_distribution_required
#: code:addons/account_analytic_distribution_required/models/account.py:58
#, python-format
msgid ""
"Analytic policy is set to 'Never' with account %s '%s' but the account move "
"line with label '%s' has an analytic distribution %s '%s'."
msgstr ""

#. module: account_analytic_distribution_required
#: model:ir.model,name:account_analytic_distribution_required.model_account_move_line
msgid "Journal Item"
msgstr "Item do Diário"
10 changes: 6 additions & 4 deletions account_analytic_distribution_required/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_required
#
#
# Translators:
# Rodrigo de Almeida Sottomaior Macedo <rmsolucoeseminformatic4@gmail.com>, 2017
msgid ""
Expand All @@ -10,12 +10,14 @@ msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-21 02:39+0000\n"
"PO-Revision-Date: 2017-06-21 02:39+0000\n"
"Last-Translator: Rodrigo de Almeida Sottomaior Macedo <rmsolucoeseminformatic4@gmail.com>, 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n"
"Last-Translator: Rodrigo de Almeida Sottomaior Macedo "
"<rmsolucoeseminformatic4@gmail.com>, 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: account_analytic_distribution_required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def _create_move(self, with_analytic, with_analytic_plan, amount=100):
date = datetime.now()
move_vals = {
'journal_id':
self.env['account.journal'].search([('type', '=', 'sale')]).id,
self.env['account.journal'].search([
('type', '=', 'sale')])[0].id,
'date': date,
}
move_id = self.move_obj.create(move_vals)
Expand Down

0 comments on commit eec357c

Please sign in to comment.