Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1332 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
pro 24
1282
0
lis 23
1504
1
zář 23
2611
2
zář 23
2411
0
bře 22
2285