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

I added a field test to the sale.order and I upgraded this module.

Afterwards, I had to remove this field "test" from sale.order.  But it is still shown in PgAdmin/Database.  

So how to remove the field in both py and in database.

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

Hi atchuthan,

You cannot remove a "field" from database just by removing it from py file, for that you will have to manually remove it from database. If you will unistall the module than the data under those tables will deleted so it is better to remove the field from database manually.

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

You have options:

1) Uninstall and Install module sale :)

2) Use SQL query

3) Don't worry, it don't affect work of openerp

อวตาร
ละทิ้ง