Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3866 Weergaven

Greetings, 

I know that if having a field named "info", to set the default value of that field i will have to add context like this

{'default_info':'info_value'}
But now, i want to set the default parent category of a product on a particular view

such that when a user tries to create a product, there is a default parent category selected.

Just thinking, does this which does not work make sense? 

{'default_product_tmpl_id.categ_id.parent_id.name':'product_parent_name'}

Sorry for poor code, still a bit new to odoo. 

Thanks your answer 

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
jul. 22
4957
2
jun. 25
1617
0
mrt. 25
1487
0
feb. 25
1136
1
jan. 25
1339