Files
gzth/yuthon_property_approval/models/property_lease_extension.py
T
2024-10-10 15:49:37 +08:00

23 lines
1010 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 PropertyLeaseExtension(models.Model):
_name = 'property.lease.extension'
_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_lease_extension_code'))
property_documents_ids = fields.Many2many('documents.document', string="延租文件")
original_contract_id = fields.Many2one('documents.document', string="原合同")
lessee = fields.Char(string="承租方")
address = fields.Char(string="地址")
end_date = fields.Date(string="原到期时间")
new_end_date = fields.Date(string="延期至")
reason_extension = fields.Char(string="延期原因")