Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6629 Переглядів

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
3029
1
жовт. 23
8409
Create function problem Вирішено
2
черв. 23
2213
1
черв. 20
35253
4
квіт. 20
9091