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

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!

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

Hi Vincent DUBREIL

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

Thanks

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

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

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ