minor fix
This commit is contained in:
parent
f9d4660560
commit
a212b24abc
|
@ -402,6 +402,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
|
|||
'amount': [],
|
||||
'description': adjust.description,
|
||||
'lines': [],
|
||||
'party_to_pay': line.party_to_pay
|
||||
}
|
||||
if hasattr(adjust, 'analytic_account') and adjust.analytic_account:
|
||||
grouped[key]['analytic'] = adjust.analytic_account
|
||||
|
@ -414,7 +415,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
|
|||
credit = _ZERO
|
||||
|
||||
lines_moves.append(self._prepare_line(values['description'],
|
||||
account_id, debit=debit, credit=credit, analytic=values.get('analytic', None)))
|
||||
account_id, debit=debit, credit=credit, party_to_pay=values.get('party_to_pay'), analytic=values.get('analytic', None)))
|
||||
if lines_moves:
|
||||
lines_moves.append(self._prepare_line(
|
||||
self.description,
|
||||
|
@ -436,7 +437,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
|
|||
debit = abs(debit)
|
||||
party_id = self.employee.party.id
|
||||
if party_to_pay:
|
||||
party_id = self.party_to_pay.id
|
||||
party_id = party_to_pay.id
|
||||
res = {
|
||||
'description': description,
|
||||
'debit': debit,
|
||||
|
|
Loading…
Reference in New Issue