Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
943 Weergaven

Hi Family

please I want to edit my contact module  company types from  to Client and Integrator but I keep getting this error message 

please I need help dear odoo'ers with a video description

Avatar
Annuleer

In this case, you need to intervene with Python code. What version of Odoo are you using and where is it installed?

Auteur

hi Lex I am using version 16 and its online

You should use Contact tags instead of changing this - these two types drive a lot of other logical behaviors in Odoo and it would be a significant undertaking to teach Odoo about a new type.

Beste antwoord

Hi,
If you really need to do it, you can do it by inheriting the model and changing the selection values or you can change it from the translation.

class Partner(models.Model):

    _inherit = "res.partner"


    company_type = fields.Selection(selection=[('person', 'Client'), ('company', 'Integrator')])

Thanks

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 21
68
1
mrt. 15
3883
2
dec. 20
3927
2
jul. 25
913
1
jul. 25
1261