From dbf86cf56934f977f3e758d1b79b709ca5135a8d Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev // IEL Date: Mon, 29 Mar 2021 17:12:05 +0200 Subject: [PATCH] [FIX] account_asset_management: correct field name --- account_asset_management/wizard/account_asset_remove.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/account_asset_management/wizard/account_asset_remove.py b/account_asset_management/wizard/account_asset_remove.py index 79b84641..e143f7c2 100644 --- a/account_asset_management/wizard/account_asset_remove.py +++ b/account_asset_management/wizard/account_asset_remove.py @@ -91,10 +91,7 @@ class AccountAssetRemove(models.TransientModel): inv = line.move_id comp_curr = inv.company_currency_id inv_curr = inv.currency_id - if ( - line.move_id.invoice_payment_state == "paid" - or line.parent_state == "draft" - ): + if line.move_id.payment_state == "paid" or line.parent_state == "draft": account_sale_id = line.account_id.id amount = line.price_subtotal if inv_curr != comp_curr: