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

Hello,


how is it possible to add custom value in the context when i click on the New button to create a partner for example ?

Looking for that since several days but not possible to find any solution!

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

Hi Vincent DUBREIL

https://www.odoo.com/forum/help-1/how-to-pass-values-in-lead-to-sales-through-action-button-118177

Thanks

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

Hi Nikhil,
Thank you for your answer but this is the problem.
Button "New" in top of tree view or kanban view are not action buttons

คำตอบที่ดีที่สุด

 you can use default_get() method to set default value or _get_view() for view level changes

อวตาร
ละทิ้ง