I want to ask you : I have a function with it i want to test a value.
But, the question is how can i call it in qweb.
Can anyone give me an example please.
Thanks a lot in advance.
I have function on py:
for line in invoice_line:
if not line.invoice_id.origin:
if line.product_id and (line.product_id.id not in product_list):
pack_ids= pack_obj.search(self.cr, self.uid, [('picking_id.origin','=',line.invoice_id.origin),('product_id','=',line.product_id.id)])
for pack_line in pack_obj.browse(self.cr, self.uid, pack_ids):
then i call it on qweb by write :
<tr t-foreach="get_batch_exp_date(o.invoice_line)" t-as="l">
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/24/16, 10:10 AM|
|Seen: 424 times|
|Last updated: 6/25/16, 8:13 AM|