I am working with Odoo 14 Community, with the purchase, sale and inventory modules, I configured the system with a Dropshipping route
I am trying to modify the printing of the purchase orders from the report_purchaseorder_document view, to add the customer's phone and mobile as an element in the Shipping Address
For this I am trying to add a line in the structure, but I don't know which variable contains the customer's phone and mobile numbers
...
< t t-if="o.dest_address_id" >
< t t-set="information_block" >
< strong>Shipping address:< /strong >
< div t-if="o.dest_address_id" >
Phone: < span t-field="CUSTOMER-PHONE-VARIABLE"/ >
< div t-field="o.dest_address_id" t-options="{& quot;widget& quot;: & quot;contact& quot;, & quot;fields& quot;: [& quot;email& quot;, & quot;address& quot;, & quot;name& quot;, & quot;phone& quot;], & quot;no_marker& quot;: True, & quot;phone_icons& quot;: True}" name="purchase_shipping_address"/ >
< /div >
< /t >
< /t >...
Could you help me identify the name of this variable
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
The data structure o.dest_address_id contains the objects: phone and mobile, in this way it is possible to add these two elements to the list of options of the elements to show as part of the shipping address.
Additionally, it is necessary to select the Buy option in the product inventory configuration, it is not enough to mark only dropshipping.
< div t-field="o.dest_address_id" t-options="{& quot;widget& quot;: & quot;contact& quot;, & quot;fields& quot;: [& quot;email& quot;, & quot;address& quot;, & quot;name& quot;, & quot;phone& quot;, & quot;mobile& quot;, & quot;vat& quot;], & quot;no_marker& quot;: True, & quot;phone_icons& quot;: True}" name="purchase_shipping_address"/ >
Spaces were placed before the & to allow the correct display of the code segment in the forum
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
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ýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 12 22
|
2016 | ||
|
2
thg 5 25
|
2174 | ||
|
3
thg 12 24
|
6239 | ||
|
1
thg 7 24
|
3032 | ||
|
1
thg 6 24
|
2109 |