2
0

[FIX] account_asset_management: correct field name

This commit is contained in:
Ivan Yelizariev // IEL 2021-03-29 17:12:05 +02:00 committed by Rodrigo
parent 1a640124f4
commit dbf86cf569

View File

@ -91,10 +91,7 @@ class AccountAssetRemove(models.TransientModel):
inv = line.move_id inv = line.move_id
comp_curr = inv.company_currency_id comp_curr = inv.company_currency_id
inv_curr = inv.currency_id inv_curr = inv.currency_id
if ( if line.move_id.payment_state == "paid" or line.parent_state == "draft":
line.move_id.invoice_payment_state == "paid"
or line.parent_state == "draft"
):
account_sale_id = line.account_id.id account_sale_id = line.account_id.id
amount = line.price_subtotal amount = line.price_subtotal
if inv_curr != comp_curr: if inv_curr != comp_curr: