Skip to Content
Menu
This question has been flagged
2533 Views

Hello;

I have created a Wizard with steps. Each Wizard contain a button "Next" to go to next wizard.

I want to create another button to return to the previous Wizard. I have try to make anothe function to call the previous

wizard, But the problem is i can't call the previous wizard because there is a required fileds. This my function which call the preivous wizard :


@api.multi
def call_previous(self):


return {
'name': 'Choix de méthode de vente',
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'affichage2.vente1',
'view_id': self.env.ref("affichage2.confirm_wizard_form3").id,
'context': {'current_id': self.id},
# 'target': 'new',
'nodestroy': True,
}



Avatar
Discard