Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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">
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/24/16, 10:10 AM|
|Seen: 706 times|
|Last updated: 6/25/16, 8:13 AM|