~openerp-dev/openobject-server/trunk-gunicorn-signaling-vmt

« back to all changes in this revision

Viewing changes to openerp/osv/orm.py

  • Committer: Vo Minh Thu
  • Date: 2012-03-07 11:10:30 UTC
  • mfrom: (4001.1.83 server)
  • Revision ID: vmt@openerp.com-20120307111030-8hzhzm0zoo34nuj7
[MERGE] merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
886
886
                        for c in new.keys():
887
887
                            if new[c].manual:
888
888
                                del new[c]
 
889
                        # Duplicate float fields because they have a .digits
 
890
                        # cache (which must be per-registry, not server-wide).
 
891
                        for c in new.keys():
 
892
                            if new[c]._type == 'float':
 
893
                                new[c] = copy.copy(new[c])
889
894
                    if hasattr(new, 'update'):
890
895
                        new.update(cls.__dict__.get(s, {}))
891
896
                    elif s=='_constraints':