Comment 20 for bug 394711

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote : Re: [Bug 394711] Re: can not sort columns

A Dilluns, 10 d'agost de 2009, Ferdinand @ ChriCar va escriure:
> We are using product + variants in farming
> so the product is wheat or potatoes - the variant are the different brands
> OpenERP 5.0 offers just products - no template form
>
> the user wants to see the ist of products ordered
> product_template.name,variants to get this I added a functional field to
> product_product which stores product_template name and added an _order
> clause product_template_name,variants we do not use codes.
>
> this works fine for GKT/WEB, but not for koo - at least once I have
> clicked on one of the 2 column to sort.
>
> interesting - I get sort ascending on clicking on product name, but not
> descending. the variants are never sorted.
>
> may be koo can get an option, "use default sort" which uses the order
> clause of py.
>
> I think products are essential

If the function field is not stored, it can't be sorted and then the default
"_order" is used. Trying to invert the order, won't work either, of course.

--
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18