2013-07-29 10:11:17 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2013-12-05 14:45:05 +00:00
|
|
|
|
2013-07-29 10:11:17 +00:00
|
|
|
from openerp.osv import fields, osv
|
2013-12-05 14:45:05 +00:00
|
|
|
|
2013-07-29 10:11:17 +00:00
|
|
|
|
|
|
|
class sale_report(osv.osv):
|
|
|
|
_inherit = "sale.report"
|
|
|
|
_columns = {
|
|
|
|
'section_id': fields.many2one('crm.case.section', 'Sales Team'),
|
|
|
|
}
|
|
|
|
|
|
|
|
def _select(self):
|
2013-12-05 14:45:05 +00:00
|
|
|
return super(sale_report, self)._select() + ", s.section_id as section_id"
|
2013-07-29 10:11:17 +00:00
|
|
|
|
|
|
|
def _group_by(self):
|
|
|
|
return super(sale_report, self)._group_by() + ", s.section_id"
|
|
|
|
|
|
|
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|