report_label_user_detail.py 586 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. from odoo import models, fields, api
  3. # from odoo.exceptions import ValidationError
  4. from odoo.utils.model_util.const import DEFAULT_COLUMN_WIDTH, ASC_DESC_SELECTION
  5. class ReportLabelUserDetail(models.Model):
  6. _name = 'jc_bi.report_label_user_detail'
  7. _description = u'标签用户明细'
  8. _module = 'jc_bi'
  9. report_label_id = fields.Many2one('jc_bi.report_label', string=u'标签引用',
  10. required=True, ondelete='cascade', index=True, copy=False)
  11. user_id = fields.Many2one('res.users', string=u'用户')