From 8c5daf147c106deefb9abb4eef9bb030ee0124f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 6 Sep 2013 22:34:12 +0200 Subject: [PATCH] Migration to python-sql review1001002 --- company.py | 4 ++-- company.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/company.py b/company.py index 0a786bebc4..9660149827 100644 --- a/company.py +++ b/company.py @@ -246,11 +246,11 @@ class Property: @classmethod def search(cls, domain, offset=0, limit=None, order=None, count=False, - query_string=False): + query=False): if Transaction().user == 0 and not 'user' in Transaction().context: domain = ['AND', domain[:], ('company', '=', None)] return super(Property, cls).search(domain, offset=offset, limit=limit, - order=order, count=count, query_string=query_string) + order=order, count=count, query=query) class Sequence: diff --git a/company.xml b/company.xml index 3c10eefb8a..6bea031130 100644 --- a/company.xml +++ b/company.xml @@ -24,7 +24,7 @@ this repository contains the full copyright notices and license terms. --> Companies company.company - [('parent', '=', False)] + [('parent', '=', None)]