Skip to content

Commit

Permalink
FIX reconcile_supplier_invoice setting currency to avoid redundant ex…
Browse files Browse the repository at this point in the history
…change_diff_move when not needed
  • Loading branch information
eLBati committed Mar 5, 2023
1 parent 0b7527c commit 50101b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion l10n_it_reverse_charge/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def get_rc_inv_line_to_reconcile(self, invoice):
def rc_payment_vals(self, rc_type):
return {
'journal_id': rc_type.payment_journal_id.id,
# 'period_id': self.period_id.id,
'date': self.date,
}

Expand Down Expand Up @@ -211,6 +210,7 @@ def rc_debit_line_vals(self, amount=None):
'credit': credit,
'account_id': self.get_inv_line_to_reconcile().account_id.id,
'partner_id': self.partner_id.id,
'currency_id': self.currency_id.id,
}

def rc_invoice_payment_vals(self, rc_type):
Expand All @@ -233,6 +233,7 @@ def rc_payment_credit_line_vals(self, invoice):
'account_id': self.get_rc_inv_line_to_reconcile(
invoice).account_id.id,
'partner_id': invoice.partner_id.id,
'currency_id': invoice.currency_id.id,
}

def rc_payment_debit_line_vals(self, invoice, journal):
Expand Down

0 comments on commit 50101b4

Please sign in to comment.