[6.0] sales analysis - can not sort group by product

Bug #692694 reported by Ferdinand
24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

currently only the partner can be sorted

product is not sortable - neither as main group nor as subgroup of partner

IMHO this is NOT enterprise ready

see screenshot

also in
./stock/report/report_stock_view.xml: <field name="name">Last Product Inventories</field>
Products can't be sorted by name - big usability issue

BTW for inventory it is necessary to group by stock location - if not how shall someone count the real quantities which might be distributed ibn stock locations over the country....?
if the company uses lots it should be groupable by lots too.

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Ferdinand (office-chricar) wrote :

same for accounting entry analysis - group by products gives an unsorted list

suggestion
to get sorted results I have created a funtion field which stores the product_template.name in product_product.name
(actually I used product_product.name_template but shouldn't it work out nicely if product_product.name is used?)

unsorted products are absolutely unusable in day to day business.....(sorry to be harsh ...)

Amit Parik (amit-parik)
affects: openobject-addons → openobject-client
affects: openobject-client → openobject-server
Changed in openobject-server:
importance: Undecided → Low
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
Revision history for this message
Ferdinand (office-chricar) wrote :

i just tried this patch, but it seems not to work

Changed in openobject-server:
importance: Low → Medium
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello,

This was a tricky one, due to the way the natural order of objects are used indirectly when referenced by a m2o in reporting group-by's.

We have added the name_template field to product.product, but as a fields.related (stored) instead of a function field.
This is available as of addons revision 4036 <email address hidden>.

A server-side fix was needed as well to support multiple clauses for _order of m2o relationships. This is fixed as of server revision 3140 <email address hidden>.

Thanks for reporting and for the suggested patch (which should have worked with the server-side fix)

Changed in openobject-server:
milestone: none → 6.0-rc2
status: Confirmed → Fix Released
Revision history for this message
Ferdinand (office-chricar) wrote :

i am on server r 3145 and addons 4044 and can't see the announced results
do I miss something ?
To reproduce
Sales Analysis
click filter year + group by products
can not sort products

Changed in openobject-server:
status: Fix Released → New
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello,

I have checked the issue with the addons(4054) and server(3149) with the suggested patch of DR Ferdinand. But problem still persists at my end. So I am confirming this bug again.

Thanks.

Changed in openobject-server:
status: New → Confirmed
Revision history for this message
Husen Daudi (husendaudi) wrote :

Hello SAZ and Ferdinand,

In attached screenshot by SAZ products are in sorted order only.
I checked by clicking on product column and it is working with ascending and descending sorted orders.

Changed in openobject-server:
status: Confirmed → Fix Released
Revision history for this message
Ferdinand (office-chricar) wrote :

not working in addons r 4067
or does it need the "code" to sort ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.