[IMP] hr_government_relations, exp_ticket_request: add accounting approva
This commit is contained in:
parent
4267fbc5e6
commit
891bd1bac3
|
|
@ -564,7 +564,6 @@ class HrOfficialMission(models.Model):
|
|||
|
||||
def accounting_manager(self):
|
||||
# self.chick_employee_ids()
|
||||
self = self.sudo()
|
||||
self.employee_ids.chick_not_overtime()
|
||||
self.employee_ids.compute_Training_cost_emp()
|
||||
self.employee_ids.write({'status': 'approved'})
|
||||
|
|
@ -574,7 +573,7 @@ class HrOfficialMission(models.Model):
|
|||
|
||||
def accounting_manager_refused(self):
|
||||
for rec in self:
|
||||
rec.sudo().refused()
|
||||
rec.refused()
|
||||
|
||||
# Refuse For The Direct Manager Only
|
||||
def direct_manager_refused(self):
|
||||
|
|
@ -642,7 +641,6 @@ class HrOfficialMission(models.Model):
|
|||
|
||||
def approve(self):
|
||||
# check if there is dealing with financial
|
||||
self = self.sudo()
|
||||
self.employee_ids.chick_not_overtime()
|
||||
if self.employee_ids and self.mission_type.related_with_financial:
|
||||
# move amounts to journal entries
|
||||
|
|
|
|||
Loading…
Reference in New Issue