Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5551 มุมมอง

m open new form with this code ...

return { 'name': ('New Application'), 'view_type': 'form', 'view_mode': 'form', 'res_model': 'hr.applicant', 'view_id': False, 'type': 'ir.actions.act_window', 'target': 'self', }

New form is open ....
but i want to send value from form one to form two when form two is from form One....?
how i take value from Form One and Auto fill into Form Two not save just fill Form Two 

any tips 
if i send value with the help of context then how i can fill form that is other model ....

อวตาร
ละทิ้ง

Hello, first print context value when you open new from.

คำตอบที่ดีที่สุด

Hi,

You can pass values through context or use related fields to value of one form to another. Check this link for related fields

อวตาร
ละทิ้ง
ผู้เขียน

return {

'name': 'New Application',

'type': 'ir.actions.act_window',

'res_model': 'hr.applicant',

'view_type': 'form',

'view_mode': 'tree,form',

'target': 'self',

'views': [(hr_recruitment_form.id, 'form')],

'view_id': 'hr_recruitment_form.id',

'flags': {'action_buttons': True},

'res_id': rec.id,

}

i use this i open new form ....

but in that time i want to show value on that form not in save just show if you feel ok then save else discard

If you want value in hr_recruitment_form just pass it through context

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 24
44
0
ส.ค. 22
3361
0
ก.พ. 23
3195
7
ส.ค. 24
26798
1
ก.ค. 19
13389