[FIX] account_asset: field asset_iddoesn't exists anymore on stock.move
This commit is contained in:
@@ -469,7 +469,7 @@ class AccountAssetDepreciationLine(models.Model):
|
||||
created_moves |= move
|
||||
|
||||
if post_move and created_moves:
|
||||
created_moves.filtered(lambda r: r.asset_id and r.asset_id.category_id and r.asset_id.category_id.open_asset).post()
|
||||
created_moves.filtered(lambda m: any(m.asset_depreciation_ids.mapped('asset_id.category_id.open_asset'))).post()
|
||||
return [x.id for x in created_moves]
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user