Skip to Content
Menu
This question has been flagged
1 Reply
3322 Views

What does this code do ?

todo = self.env['ir.actions.todo']
action_rec = self.env['ir.model.data'].xmlid_to_object('account.action_wizard_multi_chart')
Avatar
Discard
Best Answer

Hi, 

xmlid_to_object returns actual object based on xml_id.

So, in the action_res you would find the of the actual xml object. I guess something like (ir.action.window, 7). You may access it data: e.g. action_res.domain

Avatar
Discard