Files
gzth/yuthon_property_approval/models/property_renamed.py
T
2024-10-11 09:25:14 +08:00

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 PropertyRenamed(models.Model):
_name = 'property.renamed'
_description = '更名申请表'
_inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin']
name = fields.Char(string='标题')
issue_text = fields.Html(string="正文")
code = fields.Char(string="编号", default=lambda self: self.env['ir.sequence'].next_by_code('property_renamed_code'))
# 附件
renaming_materials_ids = fields.Many2many('documents.document', string='更名材料')
lessee = fields.Char(string='承租方')
invoicing_type = fields.Selection([('spot', '专票'), ('cape', '普票')], string="开票类型")
renamed_lessee = fields.Char(string='更名')
renamed_fee = fields.Float(string='更名费用')
renamed_invoicing_type = fields.Selection([('spot', '专票'), ('cape', '普票')], string="开票类型")