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

22 lines
856 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 PropertyCapacity(models.Model):
_name = 'property.capacity'
_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_capacity_code'))
address = fields.Char(string="地址")
lessee = fields.Char(string="承租方")
contact = fields.Char(string="联系人")
phone = fields.Char(string="联系电话")
#增容类型
is_water = fields.Boolean(string="水")
is_electricity = fields.Boolean(string="电")