コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4001 ビュー

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 

アバター
破棄
関連投稿 返信 ビュー 活動
2
7月 22
5137
1
8月 25
423
2
6月 25
1856
0
3月 25
1708
0
2月 25
1341