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

I need to update some products, so i modified the products in demo data with my custom file. When i install it will store all the records and works perfectly. Then after made some changes in my demo data and upgrade my module the changes could not affected in database. Even though i gave noupdate="0" in xml. But it does not update the modified record in database

can anyone help me to resolve this..?

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

Same for me! I need to change "id" of record to update it in database.

อวตาร
ละทิ้ง
ผู้เขียน

okay.. If you change id of record means, then it will create a new data instead of update..??

ผู้เขียน

I found a solution to this problem,

<record id="addon_name.record-id" model="product.product">

<field name="field_name">Field</field>

</record>

I used like this, database updated with my changes

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 20
2372
1
มิ.ย. 18
3604
3
ธ.ค. 16
3342
0
ม.ค. 16
6835
4
ก.พ. 19
5526