Hi i need to add the vendor product code in a report, but i couldn't find the field for it. Can anybody help?
i tried the purchase line id code, however it gives the whole thing i only want the vendor product code
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi i need to add the vendor product code in a report, but i couldn't find the field for it. Can anybody help?
i tried the purchase line id code, however it gives the whole thing i only want the vendor product code
thanks
Hi thank you so much for your response, i am adding this inside a table. and the code in the studio looked like this
<span t-field="table_line.purchase_line_id.name"/>
this code is the one i used an it gave me the vendor code + vendor name
i am just looking to get the vendor code.
Thank You So much
try :
<t
t-esc="line.product_id.seller_ids.filtered(lambda s: s.name.id == o.partner_id.id).product_code or ''"
/>
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.