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

I have vendor and customer ... in both menus res.partner is the model ... I have inherited the res.partner and added one bool filed called is_vendor and the default value is TRUE in vendor menu.
But i wanted the is_vendor default value as FALSE in customer menu as well. 
can you guys please tell me how can i do that?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Ashutosh, 

Please add 'default_is_vendor' : False in the context of the customer action. 


Hope it will help you. 

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi Malay,
it works for me...
Thank you so much for the quick response. :)

Hi Ashutosh.
Please Vote for the Answer.
Thank you.

Is there a way to change this value through UI withouth touching action? Kind of looking of inheriting and edit like I do with extension view. Currently doing these changes from UI and trying to avoid .py for the time being (should be doing so soon tho).

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
1731
1
thg 2 24
1443
1
thg 12 22
3717
1
thg 6 25
1240
3
thg 7 25
2995