Skip to content
Snippets Groups Projects
Commit b2780b8d authored by Goffin Simon's avatar Goffin Simon
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#113471

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 49862c6e
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ class AccountAnalyticAccount(models.Model):
"type": "ir.actions.act_window",
"res_model": "account.move",
"domain": [('id', 'in', self.line_ids.move_id.move_id.ids), ('move_type', 'in', self.env['account.move'].get_sale_types())],
"context": {"create": False},
"context": {"create": False, 'default_move_type': 'out_invoice'},
"name": _("Customer Invoices"),
'view_mode': 'tree,form',
}
......@@ -73,7 +73,7 @@ class AccountAnalyticAccount(models.Model):
"type": "ir.actions.act_window",
"res_model": "account.move",
"domain": [('id', 'in', self.line_ids.move_id.move_id.ids), ('move_type', 'in', self.env['account.move'].get_purchase_types())],
"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.
Finish editing this message first!
Please register or to comment