summaryrefslogtreecommitdiff
path: root/addons/purchase_requisition_stock
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2019-09-12 15:51:28 +0000
committerSimon Lejeune <sle@openerp.com>2019-09-13 10:08:48 +0000
commit3f0ed7d04553c1eeec9eaad4455ff053ddcebf55 (patch)
tree971163315bc01a01340a560af50663354bfeacc0 /addons/purchase_requisition_stock
parent4c9624db9d4656457f4100ee2e848f0f81d264a9 (diff)
[FIX] product: _select_seller
With the new ORM, x2m records are not ordered by default. The _select_sellers implementation requires to loop on the supplier info records ordered by their _order. We fix that by sorting with a lambda with the same order set on the model. Simply using .sorted() isn't enough since it does a sort in sql, so newId records are completely removed from the resulting recordset. This is related to task 1947351 and PR 34049. We move the tests into purchase_stock and actually implement the tests proposed in the task.
Diffstat (limited to 'addons/purchase_requisition_stock')
0 files changed, 0 insertions, 0 deletions