Skip to content

Commit

Permalink
Merge PR OCA#1269 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by AaronHForgeFlow
  • Loading branch information
OCA-git-bot committed Nov 9, 2021
2 parents 5113066 + cc81c18 commit 793c3c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AccountMove(models.Model):

def _prepare_interim_account_line_vals(self, line, move, debit_interim_account):
# Compute accounting fields.
sign = -1 if move.type == "out_refund" else 1
sign = -1 if move.move_type == "out_refund" else 1
price_unit = line._stock_account_get_anglo_saxon_price_unit()
balance = sign * line.quantity * price_unit
return {
Expand All @@ -29,7 +29,7 @@ def _prepare_interim_account_line_vals(self, line, move, debit_interim_account):

def _prepare_expense_account_line_vals(self, line, move, credit_expense_account):
# Compute accounting fields.
sign = -1 if move.type == "out_refund" else 1
sign = -1 if move.move_type == "out_refund" else 1
price_unit = line._stock_account_get_anglo_saxon_price_unit()
balance = sign * line.quantity * price_unit
return {
Expand Down

0 comments on commit 793c3c0

Please sign in to comment.