Error inserting Many2many field
Bug #1284768 reported by
Manu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OERPLib |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm using OERPLib 0.8.0
The many2many syntax using += stated in the documentation:
user = oerp.get(
groups = oerp.get(
user.groups_id += list(groups)
does not work if the many2many field doesn't have any item. It gives this error:
TypeError: unsupported operand type(s) for +=: 'tupleiterator' and 'list'
However, if it has at least one item, it works without problem.
no longer affects: | oerplib/0.8 |
Changed in oerplib: | |
status: | In Progress → Fix Committed |
Changed in oerplib: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for the bug report Manu, the bugfix is almost ready (it was affecting one2many fields too).