I want to set default value in many2one field. But i want to set it by python code in server action at on-creation. Problem is that, I don't know what are the rules and regulations of writing python code in server action. Is there any way to to set default value of Many2one field in server action.
For example:
Same work is there through customized code Set default value of field depends on other field in odoo
I'll be very thankful ...