def open_popup(self, cr, uid, ids, context=None): mod_obj = self.pool.get('ir.model.data') if move.parent_production_id: res = mod_obj.get_object_reference(cr, uid, 'module_name', 'id_specified_for_the_view') return { 'name': 'Provide your popup window name', 'view_type': 'form', 'view_mode': 'form', 'view_id': [res and res[1] or False], 'res_model': 'your.popup.model.name', 'context': "{}", 'type': 'ir.actions.act_window', 'nodestroy': True, 'target': 'new', 'res_id': record_id or False,##please replace record_id and provide the id of the record to be opened }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)