summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-01-11 15:36:39 +0000
committerNicolas Martinelli <nim@odoo.com>2019-02-22 14:58:51 +0000
commitf886bdfffae134443aa9ce6e029aeea9a0801017 (patch)
tree9be7f0e868a2ac88fc4ebab4bec60aeea0974a71 /addons/web/static/src/js/fields/relational_fields.js
parentb431f8eadcc871090544515e7c68439ded628f5d (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/relational_fields.js')
0 files changed, 0 insertions, 0 deletions