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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- โปรเจกต์
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
7488
มุมมอง
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
|
18063 | |
|
|
1
ม.ค. 19
|
4258 | ||
|
Add New Operation Type in Warehouse
แก้ไขแล้ว
|
|
2
ธ.ค. 24
|
5242 | |
|
Unable to use TensorFlow in Odoo module
แก้ไขแล้ว
|
|
1
พ.ย. 25
|
4103 | |
|
|
2
เม.ย. 23
|
19904 |