Skip to content

Commit

Permalink
[UPD] Update account_check_deposit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
abenzbiria authored Nov 26, 2024
1 parent bb6627d commit 65ccdb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ class AccountCheckDeposit(models.Model):
def _prepare_move_vals(self):
vals = super()._prepare_move_vals()
for line in vals["line_ids"]:
line[2]['partner_id'] = self.company_id.partner_id.id
if line[2]['debit'] > 0:
line[2]['partner_id'] = self.company_id.partner_id.id
return vals

0 comments on commit 65ccdb0

Please sign in to comment.