Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2282 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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 >


Ảnh đại diện
Huỷ bỏ

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?

Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 23
1214
2
thg 6 23
11813
0
thg 4 16
3637
1
thg 4 25
1044
1
thg 9 24
1259