Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
maj 15
6314
2
paź 23
2265
1
mar 21
2374
3
wrz 23
5022
2
sty 20
8346