simplify domain

This commit is contained in:
Luc De Meyer
2018-10-01 19:01:23 +02:00
committed by OCA-git-bot
parent 70e502d2ba
commit a620fcd5a9

View File

@@ -40,15 +40,13 @@ class AccountAssetCompute(models.TransientModel):
'context': {'asset_move_ids': created_move_ids},
}
domain = "[('id', 'in', [" + \
','.join(map(str, created_move_ids)) + "])]"
return {
'name': _('Created Asset Moves'),
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'account.move',
'view_id': False,
'domain': domain,
'domain': [('id', 'in', created_move_ids)],
'type': 'ir.actions.act_window',
}