Files
gzth/yuthon_property/models/property_confirm.py
T
2024-09-07 12:05:46 +08:00

21 lines
556 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 PropertyConfirm(models.Model):
_name = 'property.confirm'
_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_confirm_code'))