[FIX] hr_expense: partner on AML
It will cause issues later on. A workaround has to be found.
This reverts commit d69aa2d98b.
This commit is contained in:
@@ -120,7 +120,7 @@ class HrExpense(models.Model):
|
||||
'''
|
||||
This function prepares move line of account.move related to an expense
|
||||
'''
|
||||
partner_id = self.employee_id.address_home_id.id
|
||||
partner_id = self.employee_id.address_home_id.commercial_partner_id.id
|
||||
return {
|
||||
'date_maturity': line.get('date_maturity'),
|
||||
'partner_id': partner_id,
|
||||
|
||||
Reference in New Issue
Block a user