[FIX] account: Display Customer or Vendor in account.move list view

Steps to reproduce the bug:

- Let's consider an analytic account AA linked to customer invoices
- Open AA and click on the smart button Customer Invoies

Bug:

The field customer was not displayed in the account.move list view (same for Vendor Bills)

opw:3179200

closes odoo/odoo#123382

X-original-commit: 8ab9798269513a8bedee7874d1305b1a71b29052
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
Goffin Simon
2023-06-06 14:48:24 +02:00
committed by Nicolas Lempereur
parent 3326df49c6
commit 2ba0446f9a
@@ -74,7 +74,7 @@ class AccountAnalyticAccount(models.Model):
"type": "ir.actions.act_window",
"res_model": "account.move",
"domain": [('id', 'in', move_ids)],
"context": {"create": False},
"context": {"create": False, 'default_move_type': 'out_invoice'},
"name": _("Customer Invoices"),
'view_mode': 'tree,form',
}
@@ -91,7 +91,7 @@ class AccountAnalyticAccount(models.Model):
"type": "ir.actions.act_window",
"res_model": "account.move",
"domain": [('id', 'in', move_ids)],
"context": {"create": False},
"context": {"create": False, 'default_move_type': 'in_invoice'},
"name": _("Vendor Bills"),
'view_mode': 'tree,form',
}