19 lines
879 B
Python
19 lines
879 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models, fields
|
|
|
|
|
|
class PropertyTenantCheckoutFee(models.Model):
|
|
"""租户退租表-应收费用明细(费用结算阶段的可增删明细行)"""
|
|
_name = 'property.tenant.checkout.fee'
|
|
_description = '租户退租表-应收费用明细'
|
|
_order = 'sequence, id'
|
|
|
|
checkout_id = fields.Many2one('property.tenant.checkout', string='退租表', ondelete='cascade') # 关联退租表
|
|
sequence = fields.Integer(string='序号', default=10) # 排序
|
|
item = fields.Char(string='费用项') # 费用项名称(租金/管理费/电费/电话费/水费/其它)
|
|
amount = fields.Float(string='金额') # 金额
|
|
period = fields.Char(string='所属周期') # 费用所属周期
|
|
remark = fields.Text(string='说明') # 说明
|