# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, fields, api, exceptions, _ class PropertyInformation(models.Model): _name = 'property.information' _description = '物业信息审批' _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] _rec_name = 'name' name = fields.Char(string='标题') code = fields.Char(string="编号", default=lambda self: self.env['ir.sequence'].next_by_code('property_information_code')) property_documents_ids = fields.Many2many('documents.document', string="物业信息文件") original_property_id = fields.Many2one('property.information', string="关联物业管理变更审批") property_name = fields.Char(string="物业名称") company_id = fields.Many2one('res.company', string="所属公司") admin_id = fields.Many2one('res.users', string="管理员") precinct = fields.Char(string="片区") address = fields.Char(string="物业地址") management_type = fields.Char(string="管理类型") property_id = fields.Char(string="物业ID")