Be able to set one2many/many2many values in a more convenient way
Bug #1179313 reported by
Sébastien Alix
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OERPLib |
Fix Released
|
Low
|
Unassigned |
Bug Description
On browse_records objects, many2one fields can be updated with either an ID or a browse_record.
It will be nice if a similar behaviour can be done for many2many and one2many fields, with a default set to [(6, 0, ids)].
summary: |
- Be able to set many2many values in a more convenient way + Be able to set one2many/many2many values in a more convenient way |
Changed in oerplib: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix commited about this:
- my_record.many_ids = [(4, IDS), ...] # As usual, OERP tuples are detected here
- my_record.many_ids = [IDS or records] # Converted to [(6, 0, IDS)]
- my_record.many_ids = [] # [(5,)]
- my_record.many_ids = False # [(5,)]
Support for '+=' and '-=' operators coming soon.