Files
gzth/yuthon_property_approval/models/property_tenant_checkout_inspection.py
T
2026-09-18 19:05:55 +08:00

19 lines
917 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class PropertyTenantCheckoutInspection(models.Model):
"""租户退租表-物业检查项(工程组检查阶段的可增删明细行)"""
_name = 'property.tenant.checkout.inspection'
_description = '租户退租表-物业检查项'
_order = 'sequence, id'
checkout_id = fields.Many2one('property.tenant.checkout', string='退租表', ondelete='cascade') # 关联退租表
sequence = fields.Integer(string='序号', default=10) # 排序
item = fields.Char(string='检查项') # 检查项名称
status = fields.Selection([('normal', '正常'), ('abnormal', '异常')], string='状态', default='normal') # 正常/异常
note = fields.Text(string='批注') # 批注说明
repair_fee = fields.Float(string='维修费') # 维修费金额