summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2019-05-22 09:40:17 +0000
committerSimon Lejeune <sle@openerp.com>2019-06-10 20:43:00 +0000
commit68d8e49f2fd03bdd42c9b50fde64f706af9d3c8b (patch)
tree27a226f9205eaf09ab78db821c3688d0fef162bd /addons/web/static/src/js/fields/basic_fields.js
parent1e5624ba680fa98dc17d3edd888b70405334ddca (diff)
[REF] stock_landed_costs: adapt to valuation layers
We need to increment the value of another layer. We don't want to write on this layer in place as we used to do for multiple reasons: - valuation at date: before the application of an lc, the value should not change - if the layer was consumed, we would need to adapt the consumers and if one day we would have needed to understand what happened in the fifo stack it would be hell So we allow to create a valuation layer linked to another valuation layer through a simple M2O O2M. At the time it is only used on the landed costs to add value and no quantity so the code expects it would be the case and it is not enforced. We adapt `_run_fifo` to use the full value. We also add a stat button on the landed cost to access the valuation layers, like what is done for the picking and manufacturing orders. task-1875873
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions