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