Hi!
I try to overload a method in point_of_sale module in a custom module.
class pos_order(osv.osv):
_inherit = 'pos.order'
def onchange_partner_id(self, cr, uid, ids, part=False, context=None):
if not part:
return {value: {}}
res = super(pos_order, self).onchange_partner_id(cr, uid, ids, part=part, context=context)
return res
With this code, I have this error:
RuntimeError: maximum recursion depth exceeded while calling a Python object
Why?
OK. I'd declared my inherited class twice in my custom module. If I overload the onchange_partner_id method in first, it doesn't work. If I overload it in the second one, it's ok.