'OERP.write_record()' and 'OERP.unlink_record()' methods does not use the user context by default

Bug #1325421 reported by Sébastien Alix
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OERPLib
Fix Released
High
Sébastien Alix

Bug Description

I am trying to update a product record, but on write_record it is always reversed to the original entry:

>>> import oerplib
>>> oerp = oerplib.OERP(server='localhost', protocol='xmlrpc', database='fau_fablab', port=8069)
>>> user = oerp.login(user='admin', passwd='xxxxxxxxxxx')
>>> m = oerp.get('product.product')
>>> product = oerp.browse('product.product', 1)
>>> product.name
'Dienstleistung'
>>> product.name = "FOO"
>>> product.name
'FOO'
>>> oerp.write_record(product)
True
>>> product.name
'Dienstleistung'

What is happening here?

Changed in oerplib:
milestone: none → 0.8.2
assignee: nobody → Sébastien Alix (sebastien-alix)
importance: Undecided → High
status: New → In Progress
Changed in oerplib:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.