İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1249 Görünümler

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?



Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Ara 24
1156
0
Kas 23
1411
1
Eyl 23
2484
2
Eyl 23
2304
0
Mar 22
2236