Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1358 Vizualizări
Model patient:
def open_form(self):
return{
'type': 'ir.actions.act_window',
'res_model': 'model.appoint',
'view_mode': 'form',
'context':{'default_patient_name': self.id
}
}

model model.appoint:

patient_name =field.many2one("patient")


Imagine profil
Abandonează
Autor

@Niyas Raphy
i try to add 'target': 'new'
but srill not work

Cel mai bun răspuns

HI,
Written code seems to by fine, can you ensure that service has been restarted after adding the context.

Can you add                 'target': 'new' in the return dict and see if that makes any difference.


Thanks

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iul. 22
2443
3
sept. 20
3094
2
dec. 15
4709
0
mar. 15
3424
2
mar. 15
6545