Files
odoo_source/addons/account/models
Ricardo Gomes Rodrigues (rigr) cc895ce3ea [FIX] account: wrong account suggestion if no invoice exists for set partner
Steps:
- New invoice
- Select a partner that has no invoices yet
- Create a new line
- The default account is quite random

Fix:
Only use the most frequent account for the set partner if there are existing invoices for that partner.
Otherwise we fallback on the default account of the invoice's journal (instead of the suspense account).

closes odoo/odoo#102350

Task-id: 2972993
X-original-commit: 471924c0d0e2647a25aa38507224f8321b598211
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Ricardo Gomes Rodrigues (rigr) <rigr@odoo.com>
2022-10-06 15:58:05 +02:00
..
…