コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1133 ビュー
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")


アバター
破棄
著作者

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

最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
7月 22
2252
3
9月 20
2925
2
12月 15
4574
0
3月 15
3260
2
3月 15
6381