diff --git a/account_payment_order/__manifest__.py b/account_payment_order/__manifest__.py index 87cf64c67..80bafa948 100644 --- a/account_payment_order/__manifest__.py +++ b/account_payment_order/__manifest__.py @@ -9,7 +9,7 @@ { "name": "Account Payment Order", - "version": "16.0.1.0.1", + "version": "16.0.1.0.2", "license": "AGPL-3", "author": "ACSONE SA/NV, " "Therp BV, " diff --git a/account_payment_order/i18n/account_payment_order.pot b/account_payment_order/i18n/account_payment_order.pot index 01ee93932..473a621cc 100644 --- a/account_payment_order/i18n/account_payment_order.pot +++ b/account_payment_order/i18n/account_payment_order.pot @@ -1097,6 +1097,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/am.po b/account_payment_order/i18n/am.po index ac2868258..a17f50085 100644 --- a/account_payment_order/i18n/am.po +++ b/account_payment_order/i18n/am.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/ar.po b/account_payment_order/i18n/ar.po index ad0d5c90e..82d2c53c3 100644 --- a/account_payment_order/i18n/ar.po +++ b/account_payment_order/i18n/ar.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/ca.po b/account_payment_order/i18n/ca.po index 988ca0644..feb64368c 100644 --- a/account_payment_order/i18n/ca.po +++ b/account_payment_order/i18n/ca.po @@ -1138,6 +1138,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "No hi han transaccions a l'ordre de pagament %s." +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/ca_ES.po b/account_payment_order/i18n/ca_ES.po index f69b5fb63..a6ffda487 100644 --- a/account_payment_order/i18n/ca_ES.po +++ b/account_payment_order/i18n/ca_ES.po @@ -1100,6 +1100,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/cs.po b/account_payment_order/i18n/cs.po index 60e1f813a..3524162a0 100644 --- a/account_payment_order/i18n/cs.po +++ b/account_payment_order/i18n/cs.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/da_DK.po b/account_payment_order/i18n/da_DK.po index d54dbb84a..898ad391d 100644 --- a/account_payment_order/i18n/da_DK.po +++ b/account_payment_order/i18n/da_DK.po @@ -1110,6 +1110,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/de.po b/account_payment_order/i18n/de.po index bce6d2235..6281c6233 100644 --- a/account_payment_order/i18n/de.po +++ b/account_payment_order/i18n/de.po @@ -1109,6 +1109,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "Auf Zahlungsauftrag %s sind keine Transaktionen vorhanden." +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/el_GR.po b/account_payment_order/i18n/el_GR.po index ed97ca50e..5ca2b21bf 100644 --- a/account_payment_order/i18n/el_GR.po +++ b/account_payment_order/i18n/el_GR.po @@ -1106,6 +1106,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/es.po b/account_payment_order/i18n/es.po index 263b1aa0c..f487242c4 100644 --- a/account_payment_order/i18n/es.po +++ b/account_payment_order/i18n/es.po @@ -1142,6 +1142,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "No hay transacciones en la orden %s." +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/es_AR.po b/account_payment_order/i18n/es_AR.po index 73371cd31..69f8832bb 100644 --- a/account_payment_order/i18n/es_AR.po +++ b/account_payment_order/i18n/es_AR.po @@ -1134,6 +1134,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "No hay transacciones en la orden %s." +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/es_CL.po b/account_payment_order/i18n/es_CL.po index 5d1788a44..93877bc3a 100644 --- a/account_payment_order/i18n/es_CL.po +++ b/account_payment_order/i18n/es_CL.po @@ -1135,6 +1135,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "No hay transacciones en el pago de nómina %s." +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/es_CR.po b/account_payment_order/i18n/es_CR.po index f20ace3c7..d16ae41e8 100644 --- a/account_payment_order/i18n/es_CR.po +++ b/account_payment_order/i18n/es_CR.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/es_EC.po b/account_payment_order/i18n/es_EC.po index d21fb2463..05e69fa0b 100644 --- a/account_payment_order/i18n/es_EC.po +++ b/account_payment_order/i18n/es_EC.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/es_ES.po b/account_payment_order/i18n/es_ES.po index 2df01bbb1..9a013ef48 100644 --- a/account_payment_order/i18n/es_ES.po +++ b/account_payment_order/i18n/es_ES.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/es_MX.po b/account_payment_order/i18n/es_MX.po index e0aa4801a..8894f7626 100644 --- a/account_payment_order/i18n/es_MX.po +++ b/account_payment_order/i18n/es_MX.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/es_VE.po b/account_payment_order/i18n/es_VE.po index e58932152..0341563e0 100644 --- a/account_payment_order/i18n/es_VE.po +++ b/account_payment_order/i18n/es_VE.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/et.po b/account_payment_order/i18n/et.po index 2afc971ab..6811d025e 100644 --- a/account_payment_order/i18n/et.po +++ b/account_payment_order/i18n/et.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/fi.po b/account_payment_order/i18n/fi.po index 1b3af86d6..547b92900 100644 --- a/account_payment_order/i18n/fi.po +++ b/account_payment_order/i18n/fi.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/fr.po b/account_payment_order/i18n/fr.po index 9a6feda26..3fb3abbd4 100644 --- a/account_payment_order/i18n/fr.po +++ b/account_payment_order/i18n/fr.po @@ -1160,6 +1160,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "Il n'y a aucune opération sur l'ordre de paiement %s." +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/fr_FR.po b/account_payment_order/i18n/fr_FR.po index d8fbbe97d..730300063 100644 --- a/account_payment_order/i18n/fr_FR.po +++ b/account_payment_order/i18n/fr_FR.po @@ -1137,6 +1137,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "Il n'y a aucune opération sur l'ordre de paiement %s." +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/gl.po b/account_payment_order/i18n/gl.po index f69befecb..46c32bede 100644 --- a/account_payment_order/i18n/gl.po +++ b/account_payment_order/i18n/gl.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/hr.po b/account_payment_order/i18n/hr.po index 8e6f24ad1..1a8fbc778 100644 --- a/account_payment_order/i18n/hr.po +++ b/account_payment_order/i18n/hr.po @@ -1115,6 +1115,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/it.po b/account_payment_order/i18n/it.po index 85be2f75d..537558145 100644 --- a/account_payment_order/i18n/it.po +++ b/account_payment_order/i18n/it.po @@ -1107,6 +1107,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/lt.po b/account_payment_order/i18n/lt.po index b2f4f9000..2cd83defa 100644 --- a/account_payment_order/i18n/lt.po +++ b/account_payment_order/i18n/lt.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/nb_NO.po b/account_payment_order/i18n/nb_NO.po index 7ce6d190f..090ad096a 100644 --- a/account_payment_order/i18n/nb_NO.po +++ b/account_payment_order/i18n/nb_NO.po @@ -1122,6 +1122,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/nl.po b/account_payment_order/i18n/nl.po index ec0ba6755..d61adab91 100644 --- a/account_payment_order/i18n/nl.po +++ b/account_payment_order/i18n/nl.po @@ -1136,6 +1136,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/nl_BE.po b/account_payment_order/i18n/nl_BE.po index 019406bf3..61526a914 100644 --- a/account_payment_order/i18n/nl_BE.po +++ b/account_payment_order/i18n/nl_BE.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/nl_NL.po b/account_payment_order/i18n/nl_NL.po index 469150b56..551a452b5 100644 --- a/account_payment_order/i18n/nl_NL.po +++ b/account_payment_order/i18n/nl_NL.po @@ -1106,6 +1106,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/pl.po b/account_payment_order/i18n/pl.po index beb032cfb..680c95a7d 100644 --- a/account_payment_order/i18n/pl.po +++ b/account_payment_order/i18n/pl.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/pt.po b/account_payment_order/i18n/pt.po index 6639d2ffb..ad65a1498 100644 --- a/account_payment_order/i18n/pt.po +++ b/account_payment_order/i18n/pt.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/pt_BR.po b/account_payment_order/i18n/pt_BR.po index 3dd5ab94e..bf844c55e 100644 --- a/account_payment_order/i18n/pt_BR.po +++ b/account_payment_order/i18n/pt_BR.po @@ -1115,6 +1115,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/pt_PT.po b/account_payment_order/i18n/pt_PT.po index dfdefe5d5..1e6b67455 100644 --- a/account_payment_order/i18n/pt_PT.po +++ b/account_payment_order/i18n/pt_PT.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/ro.po b/account_payment_order/i18n/ro.po index a15acab85..386ca8794 100644 --- a/account_payment_order/i18n/ro.po +++ b/account_payment_order/i18n/ro.po @@ -1105,6 +1105,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/ru.po b/account_payment_order/i18n/ru.po index 207c1f10d..8edc106e0 100644 --- a/account_payment_order/i18n/ru.po +++ b/account_payment_order/i18n/ru.po @@ -1106,6 +1106,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/sl.po b/account_payment_order/i18n/sl.po index 01c00382a..e7f22de3d 100644 --- a/account_payment_order/i18n/sl.po +++ b/account_payment_order/i18n/sl.po @@ -1116,6 +1116,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/sv.po b/account_payment_order/i18n/sv.po index a5391393c..7a4fe9519 100644 --- a/account_payment_order/i18n/sv.po +++ b/account_payment_order/i18n/sv.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/th.po b/account_payment_order/i18n/th.po index 761d922bd..de6d9e138 100644 --- a/account_payment_order/i18n/th.po +++ b/account_payment_order/i18n/th.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/tr.po b/account_payment_order/i18n/tr.po index c0a0b21c7..39a03216b 100644 --- a/account_payment_order/i18n/tr.po +++ b/account_payment_order/i18n/tr.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/i18n/vi.po b/account_payment_order/i18n/vi.po index 1126f47bb..b33207bbd 100644 --- a/account_payment_order/i18n/vi.po +++ b/account_payment_order/i18n/vi.po @@ -1104,6 +1104,13 @@ msgstr "" msgid "There are no transactions on payment order %s." msgstr "" +#. module: account_payment_order +#. odoo-python +#: code:addons/account_payment_order/models/account_payment_order.py:0 +#, python-format +msgid "There's at least one validation error:\n" +msgstr "" + #. module: account_payment_order #: model:ir.model.fields,help:account_payment_order.field_account_payment_line__ml_maturity_date msgid "" diff --git a/account_payment_order/models/account_payment_order.py b/account_payment_order/models/account_payment_order.py index 341acbe3e..76330fa92 100644 --- a/account_payment_order/models/account_payment_order.py +++ b/account_payment_order/models/account_payment_order.py @@ -292,9 +292,13 @@ class AccountPaymentOrder(models.Model): order.payment_ids.action_cancel() order.payment_ids.unlink() # Prepare account payments from the payment lines + payline_err_text = [] group_paylines = {} # key = hashcode for payline in order.payment_line_ids: - payline.draft2open_payment_line_check() + try: + payline.draft2open_payment_line_check() + except UserError as e: + payline_err_text.append(e.args[0]) # Compute requested payment date if order.date_prefered == "due": requested_date = payline.ml_maturity_date or payline.date or today @@ -303,8 +307,7 @@ class AccountPaymentOrder(models.Model): else: requested_date = today # No payment date in the past - if requested_date < today: - requested_date = today + requested_date = max(today, requested_date) # inbound: check option no_debit_before_maturity if ( order.payment_type == "inbound" @@ -312,7 +315,7 @@ class AccountPaymentOrder(models.Model): and payline.ml_maturity_date and requested_date < payline.ml_maturity_date ): - raise UserError( + payline_err_text.append( _( "The payment mode '%(pmode)s' has the option " "'Disallow Debit Before Maturity Date'. The " @@ -332,11 +335,11 @@ class AccountPaymentOrder(models.Model): with self.env.norecompute(): payline.date = requested_date # Group options - if order.payment_mode_id.group_lines: - hashcode = payline.payment_line_hashcode() - else: - # Use line ID as hascode, which actually means no grouping - hashcode = payline.id + hashcode = ( + payline.payment_line_hashcode() + if order.payment_mode_id.group_lines + else payline.id + ) if hashcode in group_paylines: group_paylines[hashcode]["paylines"] += payline group_paylines[hashcode]["total"] += payline.amount_currency @@ -345,7 +348,15 @@ class AccountPaymentOrder(models.Model): "paylines": payline, "total": payline.amount_currency, } + # Raise errors that happened on the validation process + if payline_err_text: + raise UserError( + _("There's at least one validation error:\n") + + "\n".join(payline_err_text) + ) + order.env.flush_all() + # Create account payments payment_vals = [] for paydict in list(group_paylines.values()):