Since refactoring in saas-17 quant_ids are removed and
the logic is instead locate on stock_move_line. This commit
adapt the method by trying to undo the created move_line
during the MO.
This commit also add a default_uom_id in the view's context in order
to remove a traceback. Since 0469d2e
uom is mandatory on stock_move_line.
It also add a bunch of tests in order to check the behavior of unbuild
with 4 test: without tracking, consumed product tracking, produced product
tracking and everything tracking.
Know limitation of this commit:
-> No warning message when unbuild more than in stock.
-> Wrong result if trying to unbuild twice the same MO
with consumed product tracked with different lot/SN
8 lines
194 B
Python
8 lines
194 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from . import test_bom
|
|
from . import test_order
|
|
from . import test_stock
|
|
from . import test_workorder_operation
|
|
from . import test_procurement
|
|
from . import test_unbuild |