19 lines
693 B
Python
19 lines
693 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models, fields, api, exceptions, _
|
|
|
|
|
|
class PropertyLesseeChange(models.Model):
|
|
_name = 'property.lessee.change'
|
|
_inherit = ['mail.thread', 'mail.activity.mixin']
|
|
_description = '承租方变更审批'
|
|
|
|
|
|
name = fields.Char(string='名称')
|
|
contract_id = fields.Many2one('documents.document', string="合同")
|
|
original_lessee = fields.Char(string="原承租方")
|
|
new_lessee = fields.Char(string="新承租方")
|
|
reason = fields.Text(string="变更原因")
|
|
renaming_materials_ids = fields.Many2many('documents.document', string="更名材料")
|