i found. View_id is define with two values.
inspired from wizard number, my method two switch pages on same class :
Code:
def go_page1(self, cr, uid, ids, context=None):
new_part_id = self.read(cr, uid, ids, [])[0]
context.update({'new_part_id' : new_part_id['id']})
cr.execute('select id,name from ir_ui_view where name=%s and type=%s', ('view.new_partnenaire.wizard.p1', 'form'))
view_res = cr.fetchone()
result = {
'view_type' : 'form',
'view_mode' : 'form',
'view_id' : view_res,
'res_model' : 'pm_base.wizard.new_partner',
'type' : 'ir.actions.act_window',
'target' : 'new',
'context' : context,
}
return result
def go_page2(self, cr, uid, ids, context=None):
new_part_id = self.read(cr, uid, ids, [])[0]
context.update({'new_part_id' : new_part_id['id']})
cr.execute('select id,name from ir_ui_view where name=%s and type=%s', ('view.new_partnenaire.wizard.p2', 'form'))
view_res = cr.fetchone()
result = {
'view_type' : 'form',
'view_mode' : 'form',
'view_id' : view_res,
'res_model' : 'pm_base.wizard.new_partner',
'type' : 'ir.actions.act_window',
'target' : 'new',
'context' : context,
}
return result
perhaps more simple, but for the moment, it works.
A lack in the documentation...... (another)