添加功能
This commit is contained in:
@@ -5,7 +5,7 @@ from odoo import api, fields, models
|
||||
class PurchaseLowOrders(models.Model):
|
||||
_name = 'purchase.low.orders'
|
||||
_description = '低值易耗采购单'
|
||||
_inherit = ['mail.thread.main.attachment', 'mail.activity.mixin']
|
||||
_inherit = ['soong.workflow.mixin']
|
||||
|
||||
name = fields.Char(string="标题")
|
||||
code = fields.Char(string="合同编号", default=lambda self: self.env['ir.sequence'].next_by_code('purchase_low_orders_code'))
|
||||
|
||||
@@ -5,7 +5,7 @@ from odoo import api, fields, models
|
||||
class PurchaseServiceOrders(models.Model):
|
||||
_name = 'purchase.service.orders'
|
||||
_description = '服务采购单'
|
||||
_inherit = ['mail.thread.main.attachment', 'mail.activity.mixin']
|
||||
_inherit = ['soong.workflow.mixin']
|
||||
|
||||
name = fields.Char(string="标题")
|
||||
code = fields.Char(string="合同编号", default=lambda self: self.env['ir.sequence'].next_by_code('purchase_service_orders_code'))
|
||||
|
||||
Reference in New Issue
Block a user