Skip to Content
Menu
This question has been flagged
3 Replies
3969 Views

Hi,


I use odoo.sh, version odoo 15. I need set default value for form view when they open.

Example: I have 2 view, All Order and Private Order, They all use the model sale.order.  When I open the All Order form, set Sale Team = Team A, and when I open the Private Order form, set Sale Team = Team B


Please help me to configure this feature! Thanks




Avatar
Discard

you can pass default using the context, see: https://www.youtube.com/watch?v=b4SeEVm39pY

Best Answer

just open that form. set your desired values and after that, set up them using setup up default.

Avatar
Discard
Best Answer

Hi Nguyen: If you have separate window actions defined for the 2 forms, you can specify the default values in the context value field of the actions.

Avatar
Discard
Best Answer

I can help u to set any defualt number or series in module like sale s0001 starting automatically i can solve this mail me   kevalrk18@gmail.com

Avatar
Discard