Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6639 Zobrazení

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 19
3031
1
říj 23
8412
2
čvn 23
2215
1
čvn 20
35259
4
dub 20
9093