diff --git a/price_list.py b/price_list.py index eaa3405e80..7ea98bd874 100644 --- a/price_list.py +++ b/price_list.py @@ -2,6 +2,7 @@ #this repository contains the full copyright notices and license terms. from decimal import Decimal +from sql import Null from simpleeval import simple_eval from trytond.model import ModelView, ModelSQL, MatchMixin, fields @@ -99,7 +100,7 @@ class PriceListLine(ModelSQL, ModelView, MatchMixin): @staticmethod def order_sequence(tables): table, _ = tables[None] - return [table.sequence == None, table.sequence] + return [table.sequence == Null, table.sequence] @staticmethod def default_formula(): diff --git a/setup.py b/setup.py index 38e8e69895..8290046f98 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ if minor_version % 2: 'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % ( name[8:], name, version)) -requires = ['simpleeval'] +requires = ['simpleeval', 'python-sql >= 0.4'] for dep in info.get('depends', []): if not re.match(r'(ir|res|webdav)(\W|$)', dep): requires.append(get_require_version('trytond_%s' % dep))