~ubuntu-branches/ubuntu/natty/openerp-client/natty

« back to all changes in this revision

Viewing changes to bin/widget/model/record.py

  • Committer: Bazaar Package Importer
  • Author(s): Rico Tzschichholz
  • Date: 2010-09-13 08:00:09 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100913080009-onnv6cdbclfcjbt8
Tags: 5.0.14-0ubuntu1
* New upstream release 5.0.14 (LP: #636891)
* debian/control: Set Maintainer to Ubuntu Developers

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
            context.setdefault(CONCURRENCY_CHECK_FIELD, {})["%s,%d" % (self.resource, self.id)] = self._concurrency_check_data
96
96
        for name, field in self.mgroup.mfields.items():
97
97
            if isinstance(field, O2MField):
98
 
                v = self.value[field.name]
 
98
                if field.name not in self.value.keys():
 
99
                    continue
 
100
                v = self.value[field.name] 
99
101
                from itertools import chain
100
102
                for m in chain(v.models, v.models_removed):
101
103
                    m.update_context_with_concurrency_check_data(context)