How can when I create a doctype create another doctype when I save it?

How can when I create a doctype create another doctype when I save it ?

for example:
if I have doctype contact has select field seller or buyer
if seller and save the contact doctype I need to automatic create record under seller doctype and so on.

@mohamed_prosepra use server side scripts ,

1 Like

Check the example: Passing supplier quotation details to Item Price List - #4 by NCP

1 Like

Thanks.

But how can I hide the activities tab until save as other doctypes?

Maybe you have to use a client script to hide them.

eval:!doc.__islocal

I entered this command in → tab → display depends on

and it works.