@@ -314,7 +314,7 @@ def open_action(self):
314
314
})
315
315
ir_model_obj = self .pool ['ir.model.data' ]
316
316
model , action_id = ir_model_obj .get_object_reference (self ._cr , self ._uid , 'account' , action_name )
317
- action = self .pool [model ].read (self ._cr , self ._uid , action_id , context = self ._context )
317
+ action = self .pool [model ].read (self ._cr , self ._uid , [ action_id ] , context = self ._context )[ 0 ]
318
318
action ['context' ] = ctx
319
319
action ['domain' ] = self ._context .get ('use_domain' , [])
320
320
return action
@@ -357,7 +357,7 @@ def open_action_with_context(self):
357
357
ctx .pop ('group_by' , None )
358
358
ir_model_obj = self .pool ['ir.model.data' ]
359
359
model , action_id = ir_model_obj .get_object_reference (self ._cr , self ._uid , 'account' , action_name )
360
- action = self .pool [model ].read (self ._cr , self ._uid , action_id , context = self ._context )
360
+ action = self .pool [model ].read (self ._cr , self ._uid , [ action_id ] , context = self ._context )[ 0 ]
361
361
action ['context' ] = ctx
362
362
if ctx .get ('use_domain' , False ):
363
363
action ['domain' ] = ['|' , ('journal_id' , '=' , self .id ), ('journal_id' , '=' , False )]
0 commit comments