OCA / odoorpc

Python module to pilot your Odoo servers through JSON-RPC.
http://pythonhosted.org/OdooRPC/
GNU Lesser General Public License v3.0
231 stars 123 forks source link

Auto Commit config doesn't Effect #77

Open SamirLadoui opened 2 years ago

SamirLadoui commented 2 years ago

Describe the bug

When i change auto_commit value to False in odoo.config it still commit without calling the function commit in odoo.env

To Reproduce

import odoorpc

odoo = odoorpc.ODOO('localhost', port=8069)
odoo.login('db', 'email', 'password')
odoo.config['auto_commit'] = False

then call write function to a record

Expected behavior Changes don't apply till i call commit function in odoo.env