143
137
assert sourcing.type == 'make_to_stock', 'sourcing type wrong'
144
138
assert sourcing.state == 'draft', 'sourcing state wrong'
145
139
assert sourcing.state == sourcing.sale_order_line_state, 'states wrong'
150
assert int(sol.supplier) == ref("res_partner_b0"), 'sol supplier is wrong after update of sourcing line (%i, %i)'%(sol.supplier, ref("product_supplierinfo_1"))
144
assert int(sol.supplier) == ref("product_supplierinfo_1"), 'sol supplier is wrong after update of sourcing line (%i, %i)'%(sol.supplier, ref("product_supplierinfo_1"))
151
145
assert sol.type == 'make_to_order', 'sol type is wrong after update of sourcing line (%s, %s)'%(sol.type, 'make_to_order')
153
147
assert count == 1, 'number of sourcing line wrong (%i)'%(count)