mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Add partner in move lines
This commit is contained in:
@@ -94,6 +94,7 @@ class AccountInvoiceSpreadLine(models.Model):
|
||||
'account_id': spread.debit_account_id.id,
|
||||
'debit': amount if amount > 0.0 else 0.0,
|
||||
'credit': -amount if amount < 0.0 else 0.0,
|
||||
'partner_id': self.spread_id.invoice_id.partner_id.id,
|
||||
'analytic_account_id': analytic.id,
|
||||
'analytic_tag_ids': analytic_tags,
|
||||
'currency_id': not_same_curr and current_currency.id or False,
|
||||
@@ -103,6 +104,7 @@ class AccountInvoiceSpreadLine(models.Model):
|
||||
'account_id': spread.credit_account_id.id,
|
||||
'credit': amount if amount > 0.0 else 0.0,
|
||||
'debit': -amount if amount < 0.0 else 0.0,
|
||||
'partner_id': self.spread_id.invoice_id.partner_id.id,
|
||||
'analytic_account_id': analytic.id,
|
||||
'analytic_tag_ids': analytic_tags,
|
||||
'currency_id': not_same_curr and current_currency.id or False,
|
||||
|
||||
Reference in New Issue
Block a user