report_label_condition_detail.py 975 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. from odoo import models, fields, api
  3. from odoo.exceptions import ValidationError
  4. from . import base_archive
  5. from ..utils.label_info import LabelInfo
  6. from ..utils.label_list import LabelList
  7. class ReportLabelConditionDetail(models.Model):
  8. _name = 'jc_bi.report_label_condition_detail'
  9. _description = u'BI:标签条件明细'
  10. _order = 'id desc'
  11. _inherit = 'archives.analyse_setting_pre_condition_detail'
  12. _module = 'jc_bi'
  13. analyse_setting_pre_query_id = fields.Integer() # 覆盖基类字段
  14. report_label_condition_id = fields.Many2one('jc_bi.report_label_condition', string=u'标签条件引用',
  15. required=True, ondelete='cascade', index=True, copy=False)
  16. report_style_id = fields.Many2one('jc_bi.report_style', '样式')
  17. # field = fields.Char('字段')
  18. # value = fields.Char('值') # 日期:start_value, end_value = value; 下拉框:id, name = value