summaryrefslogtreecommitdiff
path: root/odoo/tools/sql.py
AgeCommit message (Collapse)Author
2017-02-22[IMP] tools: use `information_schema` instead of pg-specific tablesRaphael Collet
2017-02-22[REF] models: refactoring of foreign keysRaphael Collet
2017-02-22[REF] tools: add functions for SQL schema manipulationRaphael Collet
This helps factoring out a certain number of similar queries, and removing a few methods from `BaseModel`.
2016-09-16[IMP] models: change API of `_group_by_full`Raphael Collet
The dictionary `_group_by_full` is replaced by a field parameter `group_expand` that is assigned to the method name. The API of the method has been simplified as well: @api.multi def _read_group_stage_ids(self, domain, read_group_order=None, access_rights_uid=None): # the stages are given by self.ids (wrong model); # read_group_order is the order given to read_group() on self; # return stages.name_get(), {stage.id: stage.fold) _group_by_full = {'stage_id': _read_group_stage_ids} is now written: stage_id = fields.Many2one(..., group_expand='_read_group_stage_ids') @api.model def _read_group_stage_ids(self, stages, domain, order): # stages is a recordset; # order is the order to use on stages' model; # return a recordset which is a superset of stages
2016-09-02[REF] openerp: move `openerp` to `odoo`Raphael Collet