c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #15575
Re: [Bug 715749] Re: [trunk] [5.0] [6.0] keep ids order on read method with an _inherits object
Note:
I confirm this issue but thought it was on purpose (is that or
performance?). Notice that this caused us all sort of headaches with
magentoerpconnect (for instance you should respect some hierarchy order when
exporting categories to Magento). We worked around this in
base_external_referentials (extra addons) where de-defined a read method
that respect the order. If ever read unordered is significantly faster, then
may be you could provide a flag that would allow us to force the order to be
respected.
On Wed, Feb 9, 2011 at 12:46 PM, Quentin THEURET <quentin@xxxxxxxxxxx>wrote:
> ** Tags added: core object orm read
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Server.
> https://bugs.launchpad.net/bugs/715749
>
> Title:
> [trunk] [5.0] [6.0] keep ids order on read method with an _inherits
> object
>
> Status in OpenERP Server:
> New
>
> Bug description:
> On v.5 and v.6 trunk.
>
> When you give a list of ids on read function of an _inherits object
> (like product.product), the read function returns automatically a list
> of dictionnaries sorted by id (for product.product) even if you give a
> not sorted list of id.
>
> To see that, on a new db with demo data, create a XML-RPC script which
> search all products with 'pc' in their name. This search function
> returns you a list of ids sorted by id. Take this list of ids and
> sorted it again with the biggest id at first and the smallest at last.
>
> Give this new sorted list to the read function and see the result of
> this function : the list of result is sorted by id (with the smallest
> id at first).
>
> It's a bug because the read function doesn't keep the order of ids
> give to the function.
>
>
>
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/715749
Title:
[trunk] [5.0] [6.0] keep ids order on read method with an _inherits
object
Status in OpenERP Server:
New
Bug description:
On v.5 and v.6 trunk.
When you give a list of ids on read function of an _inherits object
(like product.product), the read function returns automatically a list
of dictionnaries sorted by id (for product.product) even if you give a
not sorted list of id.
To see that, on a new db with demo data, create a XML-RPC script which
search all products with 'pc' in their name. This search function
returns you a list of ids sorted by id. Take this list of ids and
sorted it again with the biggest id at first and the smallest at last.
Give this new sorted list to the read function and see the result of
this function : the list of result is sorted by id (with the smallest
id at first).
It's a bug because the read function doesn't keep the order of ids
give to the function.
References