Files
gzth/yuthon_property_approval/models/property_contract_changes.py
T
2024-10-10 19:46:12 +08:00

17 lines
560 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 PropertyContractChanges(models.Model):
_name = 'property.contract.changes'
_description = '租聘合同变更审批'
_inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin']
name = fields.Char(string='名称')
code = fields.Char(string="编号", default=lambda self: self.env['ir.sequence'].next_by_code('property_contract_changes_sequence'))