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