Skip to content

Commit 793c3c0

Browse files
committed
Merge PR OCA#1269 into 14.0
Signed-off-by AaronHForgeFlow
2 parents 5113066 + cc81c18 commit 793c3c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stock_account_prepare_anglo_saxon_out_lines_hook/models/account_move.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AccountMove(models.Model):
1010

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

3030
def _prepare_expense_account_line_vals(self, line, move, credit_expense_account):
3131
# Compute accounting fields.
32-
sign = -1 if move.type == "out_refund" else 1
32+
sign = -1 if move.move_type == "out_refund" else 1
3333
price_unit = line._stock_account_get_anglo_saxon_price_unit()
3434
balance = sign * line.quantity * price_unit
3535
return {

0 commit comments

Comments
 (0)