Hi all,

 I am trying to use case atement in table_query function.  but getting 
member descriptor error.
I am using as following. don't know if i do anything wrong.

      Sum(Case(Case.whens(my_table_name.state=='Approved', 
my_table_name.total),Case.else_(0))).as_('count'), 

or else is it possible to make custom dict and show the values in tree view?
Please help me with if there is any example.  I am using tryton 3.0.

Thanks
--Appu
                                

Reply via email to