lp:~pexego/openobject-server/add_weighted_average_grouping_server
Adds possibility of select a field as group operator to perform weighted average when grouping with four simple lines in orm.py.
example:
_columns = {
...
'price_unit': fields.float('Unit price', digits=(16,2), group_operator=
'product_qty': fields.
...
}
- Get this branch:
- bzr branch lp:~pexego/openobject-server/add_weighted_average_grouping_server
Branch merges
- OpenERP Core Team: Pending requested
-
Diff: 15 lines (+5/-1)1 file modifiedopenerp/osv/orm.py (+5/-1)
Branch information
Recent revisions
- 4101. By Omar (Pexego)
-
[ADD] Adds possibility of select a field as group operator to perform weighted average when grouping
- 4099. By Xavier (Open ERP)
-
[FIX] res.country name_search
* also returns name-matched countries when a country matches by code
* same for states
* extract almost-identical implementations of name_search in country and state
* remove useless explicit setting of context (also wrong) - 4096. By Olivier Dony (Odoo)
-
[IMP] tools.ustr: allow specific error-handling flags a la `unicode`
Also cleaned up docstrings
- 4095. By Olivier Dony (Odoo)
-
[IMP] attempt to dump uid performing operation along with thread stacks
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:openobject-server