[14.0][FIX] base_exception, error if rule's description is null

pull/2463/head
Kitti U 2021-08-01 14:40:23 +07:00 committed by matiasperalta1
parent 141f2ef027
commit 2cdcc177d4
3 changed files with 8 additions and 7 deletions

View File

@ -5,7 +5,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Exception Rule",
"version": "14.0.1.0.2",
"version": "14.0.1.0.3",
"category": "Generic Modules",
"summary": """
This module provide an abstract model to manage customizable

View File

@ -10,14 +10,15 @@ msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-03 10:08+0000\n"
"PO-Revision-Date: 2018-03-03 10:08+0000\n"
"Last-Translator: Nicolas JEUDY <njeudy@panda-chi.io>, 2018\n"
"PO-Revision-Date: 2021-08-17 14:49+0000\n"
"Last-Translator: Iván Todorovich <ivan.todorovich@druidoo.io>\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"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"
#. module: base_exception
#: model_terms:ir.ui.view,arch_db:base_exception.view_exception_rule_form
@ -101,13 +102,13 @@ msgstr ""
#. module: base_exception
#: code:addons/base_exception/models/base_exception.py:0
#, fuzzy, python-format
#, python-format
msgid ""
"Error when evaluating the exception.rule rule:\n"
" %s \n"
"(%s)"
msgstr ""
"L'evaluatino de la règle d'exception a généré une erreur :\n"
"L'évaluation de la règle d'exception a généré une erreur :\n"
" %s \n"
"(%s)"

View File

@ -219,7 +219,7 @@ class BaseExceptionModel(models.AbstractModel):
rec.exceptions_summary = "<ul>%s</ul>" % "".join(
[
"<li>%s: <i>%s</i></li>"
% tuple(map(html.escape, (e.name, e.description)))
% tuple(map(html.escape, (e.name, e.description or "")))
for e in rec.exception_ids
]
)