From 059797dea1b76d2b056155b0a973c291e504c82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Tue, 8 Feb 2022 16:19:49 +0100 Subject: [PATCH] [FIX] stock_account_prepare_anglo_saxon_out_lines_hook: update hook Adapt test to https://github.com/odoo/odoo/commit/acda26fd71eac3c6bac1ad81886cd8885bc69c5a --- stock_account_prepare_anglo_saxon_out_lines_hook/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_account_prepare_anglo_saxon_out_lines_hook/hooks.py b/stock_account_prepare_anglo_saxon_out_lines_hook/hooks.py index 0284f399c..009cf6c7a 100644 --- a/stock_account_prepare_anglo_saxon_out_lines_hook/hooks.py +++ b/stock_account_prepare_anglo_saxon_out_lines_hook/hooks.py @@ -31,7 +31,7 @@ def post_load_hook(): ) debit_interim_account = accounts["stock_output"] credit_expense_account = ( - accounts["expense"] or self.journal_id.default_account_id + accounts["expense"] or move.journal_id.default_account_id ) if not debit_interim_account or not credit_expense_account: continue