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

Hello,

Using Odoo v15, when creating a new Quotation I select the customer, but then I can select any delivery address whether or not from the same customer. I need to limit the selectable adresses to be the selected customer addresses and not any address in our partner list.

Can I do that using "User-defined Filters"? How?

If not, should I change the code so that I force the addresses list to be only addresses of the selected customer? How?

Thank you!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

here < xpath expr="//field[@name='partner_shipping_id']" position="attributes" >
< attribute name="domain">['|','&',('type', '=', 'delivery'),('parent_id', '=', partner_id),'&',('is_company', '=', False),('id', '=', partner_id)]< /attribute >
xpath >


อวตาร
ละทิ้ง

When I try adding this I get an error that says

This page contains the following errors:
error on line 10 at column 41: xmlParseEntityRef: no name.

what am I missing?

คำตอบที่ดีที่สุด

There are many module available. Check for Auto Select Delivery warehouse. With this module, you can select delivery warehouse based on the customers.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 23
1264
How do I delete a saved filter? แก้ไขแล้ว
2
มิ.ย. 23
11895
0
เม.ย. 16
3673
1
เม.ย. 25
1096
How to make dropdown filter like this? แก้ไขแล้ว
1
ก.ย. 24
1330