Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1183 Vistas

I'm trying to understand how certain contacts should be configured and how CSV files should be set up to correctly import them in. Customers for starters; they are based on whether they have an invoice or if customer_rank is set to 1. That customer can be a company or an individual, easy enough. If its a company and that company has contact information you want to add into it, then we have fields like Related Company(parent_id) and company_name which is what it gives you in the customer helper template that you can download. There is also the field buyer_id, which I'm not sure if that gets populated after sales orders or if it should be set as the customer/company, customer/company/contact, or what. The field address_type has me wondering as well.

So, when to use parent_id and company_name, and how does buyer_id work?

Avatar
Descartar
Mejor respuesta

The best way to understand the relationships is to create sample records and export them.

You can then see how each field is populated and related to other records. 

buyer_id is the Buyer who manages the Vendor just as user_id is the Salesperson who manages the Customer. The Partner model is used for Individuals and Companies that can be either Customers or Vendors or both. 

The ranking fields are managed by Odoo. If you import via a Customers Menu the customer ranking is set and if you import via a Vendors Menu the supplier ranking is set. 

Avatar
Descartar

Activate Developer Mode and hover over the ? to see the technical name of each field and what model it relates to.

Autor

Okay that makes sense. The buyer_id relates to the person that has made purchase orders so that will only show up under contacts that are vendors. I exported only individuals data and it appears i need to use parent_id. The only thing im wondering about is what customer ranks mean after rank 1. Thanks for the help.

Higher ranks are given when Customers have subsequent Invoices and Vendors have subsequent Bills. This affects the sort order for each when creating those documents. If you create more Bills for Cascade than you do for ACME then Cascade will appear before ACME in the drop-down. All Vendors appear alphabetically when you click Search More...

Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 24
3208
1
ago 24
1567
1
ago 24
1769
0
ago 24
252
0
may 21
3237