3f0ed7d04553c1eeec9eaad4455ff053ddcebf55
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.
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%