summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2017-08-10 18:45:16 +0200
committerSimon Lejeune <sle@openerp.com>2017-08-25 16:10:19 +0200
commitafff55e80913cfc38030fcc8b397c1a2d6aa1ff2 (patch)
treea22f258e139f8bcd548f52ce044c4b9b9d8443f7 /addons/web/static/src/js/fields/basic_fields.js
parent57e85e88b985a39ce5fde3fec9bea4842d54891e (diff)
[FIX] stock_account: average and negative stock
Do not inline the average price calculation in `action_done`, as there's a computed field that handle correctly the negative stock (does not trigger division by 0). Also, complete this compute method by also looking on transit locations and implement two fallbacks if the quantity in stock is null: return the latest cost, if not found return the standard price. Also, make sure that `remaining_qty` is only set on fifo moves.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions