添加功能
This commit is contained in:
@@ -21,7 +21,7 @@ class YuthonMedicalManage(models.Model):
|
||||
this_year_usage = fields.Float(string='本年使用')
|
||||
this_year_quota = fields.Float(string='本年额度')
|
||||
medical_line_ids = fields.One2many('yuthon.medical.line', 'medical_manage_id', string="体检费明细")
|
||||
company_id = fields.Many2one("res.company", string="公司", default=lambda self: self.env.company)
|
||||
company_id = fields.Many2one(related="employee_id.company_id", string="公司", default=lambda self: self.env.company)
|
||||
|
||||
def button_details(self):
|
||||
form_id = self.env.ref('yuthon_hr_employee.view_yuthon_medical_manage_form').id
|
||||
@@ -42,6 +42,15 @@ class YuthonMedicalManage(models.Model):
|
||||
"views": [[form_id, "form"]],
|
||||
}
|
||||
|
||||
def medical_manage_wizard(self):
|
||||
return {
|
||||
'name': '体检费导入',
|
||||
'type': 'ir.actions.act_window',
|
||||
'res_model': 'medical.manage.wizard',
|
||||
'view_mode': 'form',
|
||||
'target': 'new',
|
||||
}
|
||||
|
||||
class YuthonMedicalLine(models.Model):
|
||||
_name = 'yuthon.medical.line'
|
||||
_description = '体检费明细'
|
||||
|
||||
Reference in New Issue
Block a user