This commit is contained in:
2026-01-29 17:23:40 +01:00
parent 8cc0bffcae
commit 744e147a1a

View File

@@ -448,7 +448,7 @@ class Fee(ModelSQL,ModelView):
move_line.amount_second_currency = amount_converted
move_line_.debit = Decimal(0)
move_line_.credit = amount
move_line_.account = self.product.account_stock_in_used if in_out == 'in' else self.product.account_stock_out_used
move_line_.account = self.product.account_stock_in_used if in_out == 'in' else self.product.account_cogs_used
if hasattr(move_line_, 'second_currency') and move_line_.second_currency:
move_line_.amount_second_currency = -amount_converted
else:
@@ -459,7 +459,7 @@ class Fee(ModelSQL,ModelView):
move_line.amount_second_currency = -amount_converted
move_line_.debit = amount
move_line_.credit = Decimal(0)
move_line_.account = self.product.account_stock_in_used if in_out == 'in' else self.product.account_stock_out_used
move_line_.account = self.product.account_stock_in_used if in_out == 'in' else self.product.account_cogs_used
if hasattr(move_line_, 'second_currency') and move_line_.second_currency:
move_line_.amount_second_currency = amount_converted