Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6648 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 19
3042
1
ต.ค. 23
8420
Create function problem แก้ไขแล้ว
2
มิ.ย. 23
2219
Overriding method in a model แก้ไขแล้ว
1
มิ.ย. 20
35262
4
เม.ย. 20
9102