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

Hi all,
I have a related field, and lot of data s with the field. Now i need to remove the related attribute from the field, means now i need to use the field as a normal field, but without losing the data. Is that possible ?
Note : It is a Many2one field.
Any suggestions ?

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

Hi,

You can do the above by re-writing the field and set the related attribute to '' (related='').

Eg:

field_name = fields.Many2one('your_relation', related='')

Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
how to add a related field many2one? แก้ไขแล้ว
2
มี.ค. 15
17265
1
ม.ค. 19
3525
Add New Operation Type in Warehouse แก้ไขแล้ว
2
ธ.ค. 24
4416
1
พ.ย. 24
3194
2
เม.ย. 23
18217