Group by function fields does not work properly in web.
Bug #1001659 reported by
Ferdinand
This bug affects 8 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP R&D Web Team |
Bug Description
currently the "group by" does not compute sums for function fields (custom module)
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-server: | |
assignee: | OpenERP's Framework R&D (openerp-dev-framework) → nobody |
Changed in openerp-web: | |
status: | Confirmed → Invalid |
Changed in openerp-web: | |
status: | New → Confirmed |
To post a comment you must log in.
It is very difficult made GROUP BY in TREE VIEW or in GRAPH VIEW, if field calculate from other fields. qty/prod_ qty)
For example we have table with following fields:
date (Date of production)
prod_qty (Total Quantity produced items)
reject_qty (Quantity of rejected items)
quality (Calculated field: quality = reject_
If we try GROUP BY 'date' then for some date we get:
PROD_QTY = SUM(prod_qty of the same date)
REJECT_QTY = SUM(reject_qty of the same date)
QUALITY = SUM(quality of the same date)
But for agregate QUALITY = REJECT_QTY/PROD_QTY = SUM(reject_qty of the same date)/SUM(prod_qty of the same date)
Because it no the same as SUM(quality of the same date), need add extra code (for example rewrite function read_group())
It will be more cool if we have functional attribute for field, that will describe custom agregate function other than SUM().