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 add category wise field in POS receipt.
For that, I taken one list for appending multiple category but it is not append.
So I want to know that, How to append multiple category value in list in POS template.
Here is code for that, which is implement by me. But it's not work.
<t t-set="cat" t-value=""/>
<t t-foreach="orderlines" t-as="orderline">
CAT<t t-set="cat" t-esc="cat + [orderline.product.pos_categ_id]"/>
Thanks in advance.
For APPEND list, you nee to change "t-esc" with "t-value". like
I have created a list and then append the product ids in it and its working well...
<t t-set="p_ids" t-value=""/> <t t-foreach="doc.order_line" t-as="order_line"> <t t-set="p_ids" t-value="p_ids+[order_line.product_id.id]"/> </t> <strong><div t-esc="p_ids"/></strong>
Hope this will help you...
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
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: 5/25/16, 2:40 AM|
|Seen: 531 times|
|Last updated: 5/25/16, 5:39 AM|