Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged

Hey there! I have 2 models: "tickets" and "partes", both are related with "one2many" fields. I want to create a "parte" from a "ticket", so when I click to "create a new one", I want to pre-fill the field in "parte" to relate it to "ticket.name". I tried sending it by context like this:

Model "ticket":


name="parte_gf" context="{'default_ticket_bueno': name}"



But it seems like it's filtering, and that's not what I want. I want to pre-fill the field. Thanks for the help.


Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
maj 15
6373
2
okt. 23
2302
1
mar. 21
2391
3
sep. 23
5105
2
jan. 20
8377