mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] stock_account_prepare_anglo_saxon_out_lines_hook: update hook
Adapt test to acda26fd71
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user