OpusVL / OpenERP-XMLRPC-Simple

OpenERP/Odoo XMLRPC wrapper library
2 stars 1 forks source link

Breaks in Odoo 10 if context hashref is given #5

Open Altreus opened 5 years ago

Altreus commented 5 years ago

https://github.com/OpusVL/OpenERP-XMLRPC-Simple/blob/9636e97d7f4473f7aa1fd9d29c2433f04fd1b2b3/lib/OpenERP/XMLRPC/Client.pm#L271

This doesn't work in Odoo 10 but I've not looked into why yet

Nick-OpusVL commented 5 years ago

It's possible Odoo may have added another positional argument to search(), which may have pushed the domain arg into the count position or something. Look in https://github.com/odoo/odoo/tree/11.0/models.py

If it has Odoo exposes an execute_kw method which takes \@positionals, \%keywords so you could name all the arguments but $args explicitly iff they have a value to pass in.

If you don't explicitly pass a $context, is a $context of some sort sent anyway (non-undef)? If it does then that probably disproves this possibility.