This question has been flagged
1 Reply
2119 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.

Avatar
Discard
Best Answer

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

Avatar
Discard