summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2020-09-25 14:35:11 +0000
committerNicolas (vin) <vin@odoo.com>2020-09-28 05:20:14 +0000
commite6c93c2632555b100d31ba6745a8bca62d44450e (patch)
treed40107add3d96a760523793774d3817d883159a9 /addons
parentbd8b81c62c4256898d579f81f066ad202f4ea79a (diff)
[FIX] account: do not display "false" as line name in automatic entry
If we select a line without an name for the automatic entry wizard, it will be displayed as "false" in the preview widget. Even though, the value will be set to NULL in the database, we don't want to see "false" in the preview. closes odoo/odoo#57641 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/wizard/account_automatic_entry_wizard.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/wizard/account_automatic_entry_wizard.py b/addons/account/wizard/account_automatic_entry_wizard.py
index 89e87aa769c..66afab6da55 100644
--- a/addons/account/wizard/account_automatic_entry_wizard.py
+++ b/addons/account/wizard/account_automatic_entry_wizard.py
@@ -197,7 +197,7 @@ class AutomaticEntryWizard(models.TransientModel):
move_data['new_date']['line_ids'] += [
(0, 0, {
- 'name': aml.name,
+ 'name': aml.name or '',
'debit': reported_debit,
'credit': reported_credit,
'amount_currency': reported_amount_currency,
@@ -217,7 +217,7 @@ class AutomaticEntryWizard(models.TransientModel):
]
move_data[aml.move_id.date]['line_ids'] += [
(0, 0, {
- 'name': aml.name,
+ 'name': aml.name or '',
'debit': reported_credit,
'credit': reported_debit,
'amount_currency': -reported_amount_currency,