Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: How can I map dates in python using lambdas? I am trying to do this to print Excel sheet in Odoo

vbt:

I am trying to map keys for Excel Sheet using lambdas. But I can't map properly. Please help


def _get_lines(self,cr,uid,ids,val, context=None):
dict_dat = val
od_start = dict_dat['od_start'][0]
qry= ''
x = 'hr_payslip.date_from = '+ date(od_start)
print x
qry = x
qry_data = []
qry = self.make_qry(cr,uid,ids,context=context)
keys = self.get_keys()
cr.execute(qry)
qry_data = cr.fetchall()
der_data = map(lambda x:dict(zip(keys,x)),qry_data)
print der_data
return der_data



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: How can I map dates in python using lambdas? I am trying to do this to print Excel sheet in Odoo

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×