diff options
| author | Olivier Dony <odo@openerp.com> | 2011-02-07 11:26:52 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-02-07 11:26:52 +0100 |
| commit | 9c287abc143a7b187635c75751a29baeefa58c15 (patch) | |
| tree | 53e8add15ae1747783602d062caf49ac9becc9aa | |
| parent | 89933f4c30b047fdcf2630e55b0039980b920683 (diff) | |
[FIX] fields.o2m.set(): typo in previous commit, should pass IDs as list to write()
bzr revid: odo@openerp.com-20110207102652-gkgyp5uqo0nk454a
| -rw-r--r-- | bin/osv/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/osv/fields.py b/bin/osv/fields.py index 153adac6e86..8a8ff465c7a 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -502,7 +502,7 @@ class one2many(_column): cr.execute('update '+_table+' set '+self._fields_id+'=null where id=%s', (act[1],)) elif act[0] == 4: # Must use write() to recompute parent_store structure if needed - obj.write(cr, user, act[1], {self._fields_id:id}, context=context or {}) + obj.write(cr, user, [act[1]], {self._fields_id:id}, context=context or {}) elif act[0] == 5: cr.execute('update '+_table+' set '+self._fields_id+'=null where '+self._fields_id+'=%s', (id,)) elif act[0] == 6: |
