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

hi all,

can I add a Many2one type Transient field in my Model? if yes, how I can create and use it in Model and View?

regards

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Fields cannot be transient, only models can be defined as transient.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You cannot define a field with its type as Transient in Odoo.

Only models can be defined as Transient.

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

That's true : only models can be transient, not fields

But what you are searching for may be adding the option `store=False` to your field definition

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 21
2058
1
เม.ย. 21
2724
1
ก.พ. 24
1780
2
ก.ย. 23
6050
0
ม.ค. 22
2510