跳至內容
選單
此問題已被標幟
1 回覆
6530 瀏覽次數

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
2958
1
10月 23
8265
2
6月 23
2046
1
6月 20
35097
4
4月 20
8923