Skip to Content
Menu
This question has been flagged
1 Reply
2283 Views

Hi Everyone,

I am trying to restrict my purchase division from looking at any customers in Odoo 13 unless that vendor is also a customer.

I used to this in odoo 10 using domain in the edit formview of domain="[('supplier','=',True)]"

But now i cant do it anymore in odoo 13. Thank you so much for the help. 



Avatar
Discard
Best Answer

Hi,

In v13 instead of the domain you have used earlier, try this,

domain="[('supplier_rank','>', 0)]"

You can see example here in this file, line 222: https://github.com/odoo/odoo/blob/13.0/addons/account/views/partner_view.xml

The customer and supplier boolean fields has been removed from v13, see how the customer and suppliers is handled in v13: How To Handle Customers and Suppliers in Odoo13

Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 23
277
0
Jun 23
1472
1
Apr 23
1744
0
Oct 22
1254
0
Oct 22
1174