Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
19341 Widoki

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. 


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
wrz 25
4673
1
kwi 25
8239
0
mar 25
1466
1
mar 25
30
0
mar 25
1260