Skip to content
Snippets Groups Projects
Commit 8ab97982 authored by Goffin Simon's avatar Goffin Simon Committed by Nicolas Lempereur
Browse files

[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#121204

X-original-commit: b2780b8d
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 83f2937c
Branches
Tags
No related merge requests found
......@@ -77,7 +77,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',
}
......@@ -95,7 +95,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',
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment