From 744e147a1a0bb79c3202725bcd118953ed866a46 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Thu, 29 Jan 2026 17:23:40 +0100 Subject: [PATCH] 29.01.26 --- modules/purchase_trade/fee.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index 90b3d76..73cdab2 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -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