144
144
assert not a_qty, 'Quantity for product A is not empty - %s'%a_qty
145
145
assert not b_qty, 'Quantity for product B is not empty - %s'%b_qty
147
a_qty = [5.0, 2.0, 3.0, 0.0, 0.0] # the missing qty is put on a new stock move after assignation
148
b_qty = [3.0, 1.0, 1.0, 0.0, 0.0] # same behavior, the missing 3 is placed in the new move
149
149
out_ids = self.search(cr, uid, [('sale_id', '=', ref("so_D"))], context=context)
150
150
# only one OUT for the sale order
152
152
for obj in self.browse(cr, uid, out_ids, context=context):
153
153
for move in obj.move_lines:
154
154
if move.product_id.id == ref("product_A"):