[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#58680 X-original-commit: e6c93c2632555b100d31ba6745a8bca62d44450e Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user