跳至内容
菜单
此问题已终结
1 回复
1340 查看

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?



形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
12月 24
1282
0
11月 23
1505
1
9月 23
2612
2
9月 23
2413
0
3月 22
2285