Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6623 Prikazi

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
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
apr. 19
3028
1
okt. 23
8409
2
jun. 23
2213
1
jun. 20
35246
4
apr. 20
9087