Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1181 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mag 15
6360
2
ott 23
2288
1
mar 21
2382
3
set 23
5100
2
gen 20
8374