diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-01-19 20:18:38 +0100 |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-01-19 20:18:38 +0100 |
| commit | efef81654b90e70a24d1a330c0ef8d9942e05444 (patch) | |
| tree | 57720b2f57d525eafd84aebda9a33ad36ad06d3b | |
| parent | e7838dfbc44472a444b1f58dd7869febbc5984b7 (diff) | |
[REF] replace deprecated <> symbol.
bzr revid: florent.xicluna@gmail.com-20120119191838-r07oybyiqbkfehsz
| -rw-r--r-- | openerp/osv/orm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openerp/osv/orm.py b/openerp/osv/orm.py index f2686708436..dceb14a2710 100644 --- a/openerp/osv/orm.py +++ b/openerp/osv/orm.py @@ -1303,7 +1303,7 @@ class BaseModel(object): if not line[i]: continue - if field[:len(prefix)] <> prefix: + if field[:len(prefix)] != prefix: if line[i] and skip: return False continue @@ -2666,7 +2666,7 @@ class BaseModel(object): # if val is a many2one, just write the ID if type(val) == tuple: val = val[0] - if (val<>False) or (type(val)<>bool): + if val is not False: cr.execute(update_query, (ss[1](val), key)) def _check_selection_field_value(self, cr, uid, field, value, context=None): |
