Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1237 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
dec. 24
1142
0
nov. 23
1390
1
sep. 23
2456
2
sep. 23
2273
0
mrt. 22
2230