Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty

I am using Odoo 13 and trying to create customer programmatically with the help of res.partner but unable to create customer. Contact is creating but as a individual not as a customer. But in Odoo 12 there is a binary field customer which differentiate other contacts from customer but it is not present in Odoo 13. 

Any suggestion or better idea and any help ?


Avatar
Hylkää
Paras vastaus


Hi,

In odoo 13 the boolean field specifying the customer and vendor is removed.So in this version a contact which is newly created will a customer as well as a vendor.The contact will appear in the customer or vendor list after participating in a sale or purchase.

While you creating a customer  through program pass the context in the xml like  

context="{'res_partner_search_mode': 'customer'}"

Commit regarding the above information 

https://github.com/odoo/odoo/commit/8626257bc7b9ee772006eb17d12f56344e594f25

Regards

Avatar
Hylkää

the statement that "The contact will appear in the customer or vendor list after participating in a sale or purchase" it's not working and I don't understand the advantage of this change in v13.

I agree that it doesn't work like that, and I also don't understand the new logic.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
lokak. 24
1028
2
toukok. 20
3650
3
helmik. 18
4015
2
jouluk. 17
4847
1
huhtik. 15
4399