Skip to Content
Menu
This question has been flagged
2 Replies
17668 Views

Odoo recognizes a contact as customer or supplier if his supplier_rank or customer_rank is > 0. By default, when creating a contact, the rank is = 0.

There are 3 standard ways to update the customer_rank or supplier_rank increases in V.13 and V.14:

1. Invoice/bill the contact. Each time the contact is invoiced, the customer_rank increases. Same goes for the the supplier_rank when billed.  

2. Create/import the contact via the sale/purchase app. The rank will be automatically set to 1. 

3. With an import in the contact app, force the status using the field supplier_rank = 1 if supplier and customer_rank = 1 if customer. 

You can always customize this by creating a new checkbox "vendor" and "customer" and adding an automated action that would set the rank = 1 if checked, if so, don't forget to create the reverse action that sets it to 0 if you uncheck it. But most of the time it's just redundant since the standard works perfectly. 


Avatar
Discard
Best Answer

Hello everyone,

My answer is not late I hope?

Here is a module that may help: https://apps.odoo.com/apps/modules/14.0/cup_is_customer_is_vendor/

Cordial greetings

Avatar
Discard
Best Answer

A partner is a supplier when the value of the field supplier_rank is greater than 0 and a partner is a customer when the value of the field customer_rank is greater than 0

You can add a domain [('supplier_rank','>=',0)] for suppliers and  [('customer_rank','>=',0)]

Now if you want a partner to be supplier and customer then give supplier_rank and customer_rank a value greater than 0

Avatar
Discard
Related Posts Replies Views Activity
1
Apr 25
5323
0
Mar 25
464
1
Mar 25
29
0
Mar 25
382
3
Sep 24
3451