Resolved myself, sb [["active","=",true]]
On Wednesday, 28 August 2013 13:34:26 UTC-7, Steve Heyns wrote:
>
> I am able to translate most calls but I am having issues with these round
> brackets for this call
> INFO:tryton.rpc:model.product.template.search(1,
> '4d474faa5139490bbae47516eaf23402', [('rec_name', 'ilike', u'%boo%'),
> ('active', '=', True)], 0, 1000, None, {'language': 'en_US', 'locale':
> {'date': '%m/%d/%Y', 'thousands_sep': ',', 'grouping': [3, 3, 0],
> 'decimal_point': '.'}, 'language_direction': 'ltr', 'company_work_time':
> {'Y': 1920.0, 'M': 160.0, 'd': 8.0, 'w': 40.0}, 'company.rec_name':
> 'artemis', 'groups': [9, 10, 1, 15, 5, 2, 4, 3, 12, 11, 16, 24, 21, 20, 22,
> 23, 18, 19, 17, 7, 6, 8, 13, 14], 'employee': None, 'timezone': None,
> 'company': 1})
>
> Specifically the " [('rec_name', 'ilike', u'%boo%'), ('active', '=',
> True)]" section is causing me some headaches. Passing in an empty array
> works fine. but the following [{"active","=",true}] fails. Any idea what
> the () brackets are supposed to be translated as ?
>
> thanks
> Steve
>
>
>>