I have a view that list a lot of items. When the user selects anyone, an edition wizard appears with extended functionallity. Some actions of the wizard make it closed but parent view is not refreshed shows the old data.
I need that an action performed in a button of an OpenERP wizard view refresh the parent view.
I have tried:
def some_action(self, cr, uid, ids, context=None):
....
res = {'type':'ir.actions.act_window_close', 'auto_refresh':'1' }
return res
and tried this:
def some_action(self, cr, uid, ids, context=None):
....
win_obj = self.pool.get('ir.actions.act_window')
res = win_obj.for_xml_id(cr, uid, 'parent_module', 'parent_view', context)
res = {'type':'ir.actions.act_window_close', 'auto_refresh':'1' }
return res
and this:
def some_action(self, cr, uid, ids, context=None):
...
mod_obj = self.pool.get('ir.model.data')
view_rec = mod_obj.get_object_reference(cr, uid, 'hr_holidays', 'open_ask_holidays')
view_id = view_rec and view_rec[1] or False
return {
'view_type': 'form',
'view_id' : [view_id],
'view_mode': 'form',
'res_model': 'model.obj.here',
'type': 'ir.actions.act_window',
'context': context
}
but nothing works...