mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
simplify domain
This commit is contained in:
committed by
OCA-git-bot
parent
70e502d2ba
commit
a620fcd5a9
@@ -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',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user