diff options
| author | Xavier Morel <xmo@odoo.com> | 2017-05-29 16:51:44 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2017-06-12 11:04:23 +0200 |
| commit | ba1b88db34333d65e0a6abdbc7904a03baaa361b (patch) | |
| tree | 15425d3ff87ce8f1d8b6c76f6b87835a59439af0 /doc/python3.rst | |
| parent | a5283f90ce2cc8145ce536ab29984e1ea02a085c (diff) | |
[FIX] P3: sales tests relying on dict iteration order
test_00_sale_stock_invoice would blow up in Python 3, because the
test(s) relies on the iteration order of the products dict to know
where which line is (holy mother of caca) an set the relevant line's
data by indexing directly into it.
This would fail (with very odd results) in Python 2 and 3 as it could
set information on the "wrong" order line aka the order line for a
different product (and invoicing mode/whatever) than intended.
Fix the issue by hard-coding the products iteration order (to the
iteration order I get in Python 2.7.10 on that dict literal) using an
OrderedDict.
Diffstat (limited to 'doc/python3.rst')
0 files changed, 0 insertions, 0 deletions
