Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1240 Widoki

hay y'all...

I want to ask, this is right I am creating a custom button in the custom module, well the button serves to run transactions connected to the API, but here I experience problems where the module is not found. Does anyone know how to fix it?



Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

What you have done is right, the error says the function that you are calling from the button is not defined in the corresponding model.

So in order to solve the issue, inherit the model and define the function there and call your api end point, if you already have done, ensure you have restarted the odoo service.

def button_posting(self):
​#do your code logic here


How To Add Buttons In Odoo || Odoo Button Types


Thanks

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
gru 24
1148
0
lis 23
1398
1
wrz 23
2466
2
wrz 23
2286
0
mar 22
2231