OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
704 B

5 years ago
  1. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  2. from odoo import fields, models
  3. class BiSQLViewField(models.Model):
  4. _inherit = 'bi.sql.view.field'
  5. _GROUP_OPERATOR_SELECTION = [
  6. ('sum', 'Sum'),
  7. ('avg', 'Average'),
  8. ('min', 'Minimum'),
  9. ('max', 'Maximum'),
  10. ]
  11. _GRAPH_TYPE_SELECTION = [
  12. ('col', 'Column'),
  13. ('row', 'Row'),
  14. ('measure', 'Measure'),
  15. ]
  16. group_operator = fields.Selection(
  17. string='Group Operator', selection=_GROUP_OPERATOR_SELECTION,
  18. help="By default, Odoo will sum the values when grouping. If you wish"
  19. " to alter the behaviour, choose an alternate Group Operator")