Don't rely on record ordering in scenario
Since changeset 153863383394 of proetus, there is no stable ordering of record instance, so we must order on id instead. issue5347 review23911002
This commit is contained in:
1 parent
1ee07b709e
commit
d0052a01e6
1 file changed
+2
-2
@@ -176,8 +176,8 @@ Check customer invoice::
|
||||
|
||||
>>> sale.reload()
|
||||
>>> invoice, = sale.invoices
|
||||
>>> sorted([l.product for l in invoice.lines]) == \
|
||||
... sorted([product, carrier_product])
|
||||
>>> sorted([l.product.id for l in invoice.lines]) == \
|
||||
... sorted([product.id, carrier_product.id])
|
||||
True
|
||||
>>> invoice.untaxed_amount
|
||||
Decimal('83.00')
|
||||
|
||||
Reference in new issue
Block a user