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

Hi,

I created this model and setup its context so i can call values when overwritting the default_get method and works perfectly, but when i want to create a record from a different model using a many2one field to that first record the context appears as by default and the field doesn't get the default values i want.

How can i pass on the context when calling the create method from a related field on a different model?

Thanks in advance and have a happy new year all.

อวตาร
ละทิ้ง

Hello Carlos, Have u found any solution to this issue? If yes please post it as i am facing similar problem(While setting context to related field it's value is false by default). Regards,

Related Posts ตอบกลับ มุมมอง กิจกรรม
Many2one related field แก้ไขแล้ว
3
ก.ย. 21
9489
0
มี.ค. 21
3357
Representation of Many2one in view แก้ไขแล้ว
4
ม.ค. 20
3305
0
พ.ย. 18
4544
0
เม.ย. 17
3753