Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6210 Представления

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
2721
1
окт. 23
7646
2
июн. 23
1582
1
июн. 20
34552
4
апр. 20
8314