tinyerp / odooly

Python library and CLI to interact with Odoo and OpenERP.
https://odooly.rtfd.io/
Other
60 stars 33 forks source link

Support for timeout option #3

Open mbello opened 5 years ago

mbello commented 5 years ago

Hi, thanks for odooly!

I am experienced with odoorpc and immediatelly I missed the timeout parameter when setting the connection parameters. Some requests take quite long and it is important to have a configurable timeout.

florentx commented 5 years ago

There's 2 ways right now to customize the timeout:

Maybe I'll add an optional argument to the Client as well, as an enhancement. The tricky part is that odooly.Client uses either urllib.request or xmlrpc.clientor requests depending on the context and the configuration.