[MERGE] forward port of branch saas-11 up to 66ea78f

This commit is contained in:
Christophe Simonis
2016-06-08 14:55:23 +02:00
+1 -1
View File
@@ -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