Files
gzth/yuthon_trade/models/yuthon_trade_contract.py
T
2024-10-12 11:07:54 +08:00

13 lines
443 B
Python

from odoo import models, fields, api
class YuthonTradeContract(models.Model):
_name = 'yuthon.trade.contract'
_description = '合同审批'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称', required=True)
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_personal_condolences_code_sequence'))