Minor documentation improvement
Bug #1288708 reported by
Martin Bramwell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OERPLib |
New
|
Undecided
|
Unassigned |
Bug Description
Add to the section "Update data through browsable records" . . .
| and is also equivalent to:
|
| >>> setattr(partner, 'name', "Caporal Jones")
| >>> oerp.write_
To post a comment you must log in.
Hi Martin,
Hi don't know if it is relevant this kind of documentation with setattr/getattr, as it is a common feature of Python. I mean it applies to every objects:
>>> order_obj = getattr(oerp, 'get')( 'sale.order' )
>>> order = getattr(order_obj, 'browse')(4)
(same behaviour for setattr)
Have you some reasons to put that in the tutorial for this specific case?
But this kind of example would have its place in the 'example' folder of the project. What do you think?