I have an osv_memory wizard which creates a record on successful completion, and then should display the record in form view. Unable to know how to display the created record in display view. Would need some help. The code is like this:
def action_book(self, cr, uid, ids, context=None): res = self.read(cr,uid,ids)[0] booking_data = {'resource_id' : res['resource_id'], 'booked_from' : res['booked_from'], 'booked_upto' : res['booked_upto']} booking_obj = self.pool.get('rad_rb.booking') new_id = booking_obj.create(cr, uid, booking_data) return { 'view_type': 'form', "view_mode": 'form,tree', 'res_model': 'rad_rb.booking', 'type': 'ir.actions.act_window', 'domain':[('id', '=', new_id)] } thanks, ------------------------ Sanjay RAD Solutions Private Limited sanjay at radsolutions co in -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=31424#31424 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
