23 lines
1.0 KiB
Python
23 lines
1.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models, fields, api, exceptions, _
|
|
|
|
|
|
class PropertyEarlyQuitting(models.Model):
|
|
_name = 'property.early.quitting'
|
|
_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_early_quitting_code'))
|
|
property_documents_ids = fields.Many2many('documents.document', string="提前退租文件")
|
|
lessee = fields.Char(string='承租方')
|
|
start_data = fields.Date(string="合同开始日期")
|
|
end_data = fields.Date(string="合同结束日期")
|
|
early_quitting_date = fields.Date(string="提前退租日期")
|
|
contract_id = fields.Many2one('documents.document', string="合同")
|
|
address = fields.Char(string="地址")
|
|
reason = fields.Char(string="退租原因") |