Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6679 Visualizzazioni

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 19
3073
1
ott 23
8467
2
giu 23
2243
1
giu 20
35299
4
apr 20
9135