跳至内容
菜单
此问题已终结
1 回复
6620 查看

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',
    }
形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
4月 19
3028
1
10月 23
8408
2
6月 23
2212
1
6月 20
35245
4
4月 20
9086