İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6613 Görünümler

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
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 19
3027
1
Eki 23
8399
2
Haz 23
2209
1
Haz 20
35238
4
Nis 20
9084