This question has been flagged
1 Reply
1848 Views

Hello,


can I add more different types of contact types? There are:

contact
invoice
delivery
other
private

The problem:

I wrote a program to sync with a magento 2 store ... and there I need more delivery options.

So I want in odoo 10:

delivery
other_delivery


Then delivery is the default delivery address and other_delivery are other delivery address in case someone need it.


How can I add the type "other_delivery"?

Avatar
Discard
Best Answer

Override the model 'res_partner'  and change the field 'type'. You might find it here - https://github.com/odoo/odoo/blob/10.0/odoo/addons/base/res/res_partner.py

To that goal you should create your custom module depending on base, add new selection values (you may use the special field attribute 'selection_add') and update also views (xml) in order new contact types are shown correctly.

You can't achieve the goal without coding.

Avatar
Discard