Odoo Help


How to restrict code creation for contact(res.partner)?

on 10/14/14, 2:00 AM 691 views

Hi Friends,

I have inherited res.partner and wrote new create function for creating customer code.It does creating code for the customer but also if i tick is_company and if i create a contact means then for contact also the code generated.I dont need code for contact only for parent.So how can i achieve this please do help me in this.Thanks in Advance.


Techno-Functional Associate with 7+ years of experience in Odoo (formerly known as OpenERP).

On 10/14/14, 2:07 AM

before creating code, do the validation,  if "is_company" is True, then allow to generate code...

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/14/14, 2:00 AM
Seen: 691 times
Last updated: 3/16/15, 8:10 AM