BaseMode.read_group sums numeric fields unconditionally
Bug #1166886 reported by
Richard Lewis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP's Framework R&D | ||
OpenERP Community Backports (Server) |
New
|
Undecided
|
Unassigned |
Bug Description
In the ORM, BaseModel.
The attached patch adds an 'allow_aggreation' parameter to the _column class constructor which limits aggregation in read_group to only those columns having this property as True. For fields.integer and fields.float, is it set to True by default meaning that current behaviour will not change.
Related branches
lp:~credativ/ocb-server/7.0-lp1166886
Rejected
for merging
into
lp:ocb-server
- Holger Brunn (Therp): Disapprove
- Olivier Dony (Odoo) (community): Needs Information (surface scan, no test)
-
Diff: 41 lines (+6/-0)2 files modifiedopenerp/osv/fields.py (+5/-0)
openerp/osv/orm.py (+1/-0)
To post a comment you must log in.