diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-01-11 15:36:39 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-02-22 14:58:51 +0000 |
| commit | f886bdfffae134443aa9ce6e029aeea9a0801017 (patch) | |
| tree | 9be7f0e868a2ac88fc4ebab4bec60aeea0974a71 /addons/web/static/src/js/fields | |
| parent | b431f8eadcc871090544515e7c68439ded628f5d (diff) | |
[FIX] account: default account
When importing an invoice without specifying the type, the invoice type
is set to `out_invoice`, but the account set is the supplier account.
At this point, the invoice type is simply undefined (`False`). It will
be set by default at creation to `out_invoice`. Therefore, we reach the
`else` condition which uses the supplier info.
We simply inverse the condition, so it creates a consistent object.
However, it raises a bigger question about how the action context should
be kept at invoice. We won't address it :-)
opw-1925547
closes odoo/odoo#30154
closes odoo/odoo#31373
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions
