Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5023 มุมมอง

In product template form i have a custom field like "mycolor"

In  sale order form when i print the quotation i need get the field value "mycolor"

How i can access to the module product and get the field "mycolor" value from sale order form and print in sale order document.

Or how i can put in the sale order document (quotation) the field value "warranty" (<-- This field there is in product template form)

Or how i can display the product template form field value "warranty" inside saler oder form and then print it in the quotation.

Thank you.

อวตาร
ละทิ้ง
ผู้เขียน

For odoo 9: http://odoo.guide/accessing-relational-fields-in-qweb-reports/

ผู้เขียน คำตอบที่ดีที่สุด

For odoo 9:

<span t-field="doc.product_id.product_tmpl_id.x_customfield"/>

http://odoo.guide/accessing-relational-fields-in-qweb-reports/

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 16
3688
7
พ.ย. 15
14252
0
มี.ค. 15
2840
6
ธ.ค. 20
7320