diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index 37cfeaa..a4d6c75 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -468,10 +468,10 @@ class Fee(ModelSQL,ModelView): logger.info("FEE_MOVELINES_1:%s",move_line) logger.info("FEE_MOVELINES_2:%s",move_line_) - - account_configuration = AccountConfiguration(1) - journal = account_configuration.get_multivalue( - 'expense', company=company.id) + AccountJournal = Pool().get('account.journal') + journal = AccountJournal.search(['type','=','expense']) + if journal: + journal = journal[0] description = None description = 'Fee not inventoried'