Skip to Content
Menu
This question has been flagged
1 Reply
2301 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
Related Posts Replies Views Activity
1
Nov 24
18019
1
Sep 23
1203
3
May 23
4091
7
Apr 23
47092
1
Dec 22
6434