Awesome  Cédric. it really worked for me.  Thanks a bunch.

I am getting following trace back when click on new button in some parts of 
the system.
not able to understand what i am doing wrong here. and i am using tryton 
3.4 in ubuntu 12.4
Could yo please help me for this trace?

in <string>' requires string as left operand, not NoneType
File "/home/apparao/Downloads/tryton-3.4.0/tryton/gui/window/form.py", line 
332, in sig_new
    self.screen.new()

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/gui/window/view_form/screen/screen.py",
 
line 442, in new
    record = group.new(default)

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/gui/window/view_form/model/group.py",
 
line 317, in new
    record.default_get()

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/gui/window/view_form/model/record.py",
 
line 367, in default_get
    self.set_default(vals)

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/gui/window/view_form/model/record.py",
 
line 429, in set_default
    self.validate(softvalidation=True)

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/gui/window/view_form/model/record.py",
 
line 394, in validate
    if not field.validate(self, softvalidation, pre_validate):

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/gui/window/view_form/model/field.py",
 
line 120, in validate
    res = res and eval_domain(domain, EvalEnvironment(record))

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/common/domain_inversion.py", 
line 128, in eval_domain
    return boolop(eval_domain(domain[0], context),

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/common/domain_inversion.py", 
line 118, in eval_domain
    return eval_leaf(domain, context, boolop=boolop)

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/common/domain_inversion.py", 
line 98, in eval_leaf
    return OPERATORS[operand](context_field, value)

  File 
"/home/apparao/Downloads/tryton-3.4.0/tryton/common/domain_inversion.py", 
line 16, in in_
    return operator.contains(b, a)

Thanks
--Appu


On Wednesday, November 19, 2014 9:30:03 AM UTC+1, Cédric Krier wrote:
>
> On 18 Nov 10:01, appu rongala wrote: 
> > Hi guys, 
> > 
> >            Any one is aware when searcher function will be called??For 
> > example: 
> > fields.Function(fields.Integer('Test'), 'get_function', 
> > searcher='search_function') 
> > 
> > when this search_function will be invoked?? 
> > 
> > will it be invoked when used as domain=['model fields', 'operator', 
> > Eval(function filed')] ?? 
>
> It will be called with such domain: 
>
>     [('function field', operator, value)] 
>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

Reply via email to