Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6638 Visualizações

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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
abr. 19
3031
1
out. 23
8412
2
jun. 23
2215
1
jun. 20
35259
4
abr. 20
9093