summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2019-05-20 13:43:41 +0000
committerSimon Lejeune <sle@openerp.com>2019-06-10 20:43:00 +0000
commit4c47061326ac0211781ed7e93bb47b6a6112eea3 (patch)
tree8c8db014358651b771ee08f4fb5f6e9ebbe38868 /addons/web/static/src/js/fields/basic_fields.js
parent7c123228029e99e0cdcea85d24867e2982eacdc0 (diff)
[REF] stock_dropshipping: adapt to stock valuation layers
The tests of this module showed multiple issues with the anglos axon accounting entries creation so we fix them by getting the value on the valuation layer and not directly on the stock moves. About the changes in test_crossdock.py > To change a standard price, we need to open the wizard test_lifo_price.py > To change a standard price, we need to open the wizard + read the valuation on the layers. test_stockvaluation.py > Now that we create a layer in and out for a dropshipped move, the accounting entries are similar to an in followed by an out, thus we need to increment the number of generated AML. Not that the balance of the accounts stay the same. There's a slight change in fifo_perpetual_anglosaxon_ordered though. Let's say for a start that this config doesn't make sense. Ordered means we don't read the value on the stock move to create the accounting entries but only the standard price. We had to change 8 by 10 in this test because, before this task, the standard price was updated when running fifo, even in dropshipped. As the PO line was valued at 8, the anglos axon in stock out was at 8 because the standard price was changed to 8 after the delivery. task-1875873
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions