Comment 3 for bug 1288708

Revision history for this message
Sébastien Alix (sebastien-alix) wrote :

I understand, reflection is used a lot for such tools.
But now I think about it, there is another way to access data (and which is available in OpenERP too I think), like a dictionary interface:

>>> partner['name'] == partner.name
True

But at this time, there is no possibility to set a value, it's just an accessor:

>>> partner['name'] = "Test"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'res_partner' object does not support item assignment

I could implement this operation (I have to check if there would be no regression to do it).
And this specific API on browse_records will be present in the documentation of course. It would be ok for you?