How to create Customer programmatically?

左心房为你撑大大i 提交于 2021-02-17 02:45:53

问题


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 ?


回答1:


The fields were removed completely in V13. With module/app account two new fields will be created: customer_rank and supplier_rank, which will try to representate ranks for both situations. Odoo is setting the rank on creation to 1 on customer_rank when creating from customer menu or supplier_rank from supplier menu.

I suggest to just live with this big change or make a custom module which is getting back customer and supplier boolean fields.



来源:https://stackoverflow.com/questions/58620574/how-to-create-customer-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!