Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2874 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Ashutosh, 

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


Hope it will help you. 

อวตาร
ละทิ้ง
ผู้เขียน

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).

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
2037
1
ก.พ. 24
1595
1
ธ.ค. 22
3862
1
มิ.ย. 25
1498
3
ก.ค. 25
3192