Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2252 Zobrazení

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!

Avatar
Zrušit
Nejlepší odpověď

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 >


Avatar
Zrušit

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?

Nejlepší odpověď

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


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
lis 23
1135
2
čvn 23
11725
0
dub 16
3570
1
dub 25
962
1
zář 24
1191