Skip to Content
Menú
This question has been flagged
1 Respondre
6325 Vistes

Hi, guys.

I have a case that confusing me.

I want to show a view when i click the save button.

I already tried these code. The Console / Terminal successfull print the message.

@api.multi
def write(self, vals):
    super(Project_Requisition_Inherit_Mpd, self).write(vals)
    print "Tipe Jasa Project Requisition Berhasl Diganti"
    return {
        'type': 'ir.actions.act_window',
        'res_model': 'wizard.confirm.delete.project.req',
        'view_type': 'form',
        'view_mode': 'form',
        'target': 'new',
    }
Avatar
Descartar
Best Answer

write functions returns a Bool and create function returns a browsable record.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’abr. 19
2854
1
d’oct. 23
7948
2
de juny 23
1802
1
de juny 20
34805
4
d’abr. 20
8605