Maxime Richez
2018-01-22 08:55:00 UTC
Hi,
In domain definition, operand cannot be a field. So, i'm wondering how doing this kind of view: for example, a listing of all products having a cost_price greater than list price.
I would define this domain ['cost_price', '>', Eval('list_price')] but this is not working.
Another idea, was to define a function field on a boolean field (flag) and the setter of this function field will return true or false about the comparison between 'cost_price' and 'list_price'... and then creating a treeview with domain ['flag', '=' ,'True'] but once again, how to define a correct domain in the searcher function of the flag function field ?
Thanks for ideas, help...
In domain definition, operand cannot be a field. So, i'm wondering how doing this kind of view: for example, a listing of all products having a cost_price greater than list price.
I would define this domain ['cost_price', '>', Eval('list_price')] but this is not working.
Another idea, was to define a function field on a boolean field (flag) and the setter of this function field will return true or false about the comparison between 'cost_price' and 'list_price'... and then creating a treeview with domain ['flag', '=' ,'True'] but once again, how to define a correct domain in the searcher function of the flag function field ?
Thanks for ideas, help...
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/057c16fd-ed2b-440c-ac1e-5c132173b47f%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/057c16fd-ed2b-440c-ac1e-5c132173b47f%40googlegroups.com.