14 lines
667 B
Python
14 lines
667 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import api, fields, models, tools
|
|
from odoo.exceptions import UserError, ValidationError
|
|
|
|
|
|
class IssueLibrary(models.Model):
|
|
_inherit = "issue.library"
|
|
_description = '议题库'
|
|
|
|
relevancy_type = fields.Selection(selection_add=[('yuthon_official', '行政发文'),
|
|
('yuthon_official_incoming_normal', '行政收文')],
|
|
string="关联流程类型")
|
|
yuthon_official_id = fields.Many2one('yuthon.official', string="行政发文")
|
|
incoming_normal_id = fields.Many2one('yuthon.official.incoming.normal', string="行政发文") |