Name:
[FIX] pos_sale: assert every sale picking is cancelled, not a single one
State:
Killed
PR State:
merged
PR Author:
Roy Le
PR Author Email:
PR:
#1256
Committer:
Roy Le
Committer Email:
roy.le@viindoo.com
Commit:
09e753a5f2874475578e883cbae014efb5e30b00
Description:
[FIX] pos_sale: assert every sale picking is cancelled, not a single one
test_settle_order_with_multistep_delivery_receipt reads
sale_order.picking_ids.state, assuming the order carries exactly one
delivery picking. With the foreign-trade export flow installed, the NL
test partner makes the order route its delivery through the customs
zone, so two chain pickings exist by the time the POS settles the order
— both correctly cancelled — and the singleton access raises
"Expected singleton: stock.picking(588, 587)".
Assert the actual intent of the test instead ("all the picking are
cancelled", per its docstring): the order has pickings and every one of
them is cancelled. Still passes on a bare community stack.
Branch:
18.0
Age:
Not started
Up-time:
Not finished