summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-01-11 15:36:39 +0000
committerNicolas Martinelli <nim@odoo.com>2019-01-11 15:36:39 +0000
commit0f0ad7d1d4223cbcd5f66c4ffcb1df06016852bf (patch)
tree9c44bdf5eee6f6eddca785ed237fa3fe5a938100 /addons/web/static/src/js/views/basic/basic_controller.js
parent1e224d244c97c54aaae46364f88c6d5b3f8f0e6c (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
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions