Files
gzth/yuthon_trade/models/yuthon_trade_refund.py
T
2024-11-30 20:03:22 +08:00

13 lines
493 B
Python

from odoo import models, fields, api
class YuthonTradeRefund(models.Model):
_name = 'yuthon.trade.refund'
_description = '退款流程'
_inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.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'))