Odoo Help

Welcome!

This community 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.

0

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

By
vadivel
on 10/14/14, 2:00 AM 451 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.

0

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

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

deep
On 10/14/14, 2:07 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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