添加功能
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
'category': 'Human Resources/Attendances',
|
||||
'version': '0.1',
|
||||
'license': 'LGPL-3',
|
||||
'depends': ['hr', 'soong_workflow',],
|
||||
'depends': ['hr', 'soong_workflow', 'mail'],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
'data/library_changes_data.xml',
|
||||
|
||||
@@ -5,7 +5,7 @@ class YuthonIndexApproval(models.Model):
|
||||
_name = 'yuthon.index.approval'
|
||||
_description = "组织指标库变更管理"
|
||||
_rec_name = 'name'
|
||||
_inherit = 'soong.workflow.mixin'
|
||||
_inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin']
|
||||
|
||||
name = fields.Char('标题')
|
||||
creation_time = fields.Datetime(string='申请日期', default=lambda self: fields.Datetime.now())
|
||||
|
||||
@@ -6,7 +6,7 @@ class YuthonDutyManagement(models.Model):
|
||||
_name = 'yuthon.duty.management'
|
||||
_description = "组织绩效"
|
||||
_rec_name = 'name'
|
||||
_inherit = ['soong.workflow.mixin']
|
||||
_inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin']
|
||||
|
||||
name = fields.Char('标题')
|
||||
cycle = fields.Selection([('monthly', '月度'),
|
||||
|
||||
@@ -5,7 +5,7 @@ class YuthonEmployeeApproval(models.Model):
|
||||
_name = 'yuthon.employee.approval'
|
||||
_description = "员工指标库变更管理"
|
||||
_rec_name = 'name'
|
||||
_inherit = 'soong.workflow.mixin'
|
||||
_inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin']
|
||||
|
||||
name = fields.Char('标题')
|
||||
users_id = fields.Many2one('res.users', string="申请人", default=lambda self: self.env.user.id)
|
||||
|
||||
@@ -4,7 +4,7 @@ from odoo import models, fields, api, exceptions, _
|
||||
class YuthonTissueDutyApproval(models.Model):
|
||||
_name = 'yuthon.tissue.duty.approval'
|
||||
_description = "组织绩效变更申请表"
|
||||
_inherit = ['soong.workflow.mixin']
|
||||
_inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin']
|
||||
_rec_name = 'name'
|
||||
|
||||
name = fields.Char('标题')
|
||||
|
||||
Reference in New Issue
Block a user