30 lines
1.4 KiB
Python
30 lines
1.4 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 PropertyFitment(models.Model):
|
|
_name = 'property.fitment'
|
|
_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_fitment_code'))
|
|
address = fields.Char(string="物业地址")
|
|
lessee = fields.Char(string="承租方")
|
|
contact = fields.Char(string="联系人")
|
|
phone = fields.Char(string="联系电话")
|
|
renovation_projects = fields.Char(string="装修项目")
|
|
construction_unit = fields.Char(string="施工单位")
|
|
leader = fields.Char(string="负责人")
|
|
phone_number = fields.Char(string="联系电话")
|
|
start_date = fields.Date(string="装修开始日期")
|
|
end_date = fields.Date(string="装修结束日期")
|
|
renovation_deposit = fields.Float(string="装修押金")
|
|
#附件
|
|
card_id = fields.Many2one('documents.document', string="身份证")
|
|
license_id = fields.Many2one('documents.document', string="营业执照")
|
|
property_documents_ids = fields.Many2many('documents.document', string="装修文件") |