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

We are using Odoo V14 and we don't have studio app. We simply want to add a new text field on the product form to store some information. 


If we use the Setting-->Technical-->Model/Fields and add here. And change the form view of the product adding the fields. 


When upgrade, will the added field be lost? Is there any other drawback if adding direct in Model/Fields?

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

Hi,

If you add the new fields to existing view, without inheriting it, you will loose the field from the view on upgrading it, then you might have to re add it to the view again. Instead of adding to original view, simply just create a view record that inherit the original view and add the field. This is a good approach where you will not loose the field from view on upgrading.

See this: Adding Custom Field From User Interface In Odoo

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
2500
2
ก.ค. 25
7940
2
ก.ค. 25
4379
2
ก.ค. 25
4091
2
มิ.ย. 25
2688