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 a
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.