Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3758 Lượt xem

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 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 22
4798
2
thg 6 25
1276
0
thg 3 25
1229
0
thg 2 25
957
1
thg 1 25
1173