跳至内容
菜单
此问题已终结
2185 查看


Hello,

I am using odoo10 and i  have declared my _get _selection function as follows:

def _get_selection(self, cursor, user_id, context=None):

when i try to install my module i get this erreur: 

_get_selection() takes at least 3 arguments (1 given)
Any help please ??
形象
丢弃

HI Zak,

@api.multi

def _get_selection(self):

#try like this