Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8102 Представления

Hi everyone

I am new to Odoo and am looking for a way to call my custom API endpoint if a model changes. I looked into automated server actions but the only things I can do is send an email or call custom python code. It doesn't look like I can invoke a request inside the custom python code.

How can I implement/add this feature? If possible (no worries if not), could you point me to development documentation? I'm really new to this so any extra information is much appreciated!

Kind regards

Sam

Аватар
Отменить

hope these tips will solve your problem: https://sites.google.com/view/thinkincode/erp/odoo

Лучший ответ

Can you override the write method and insert your code before/after the standard write method is called?

https://www.odoo.com/forum/help-1/question/v9-how-to-inherit-write-function-92397

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
авг. 20
10488
0
июл. 17
3236
0
мар. 24
2064
4
сент. 21
10802
0
июн. 19
3940