Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5068 Lượt xem

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..?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 20
2325
1
thg 6 18
3545
3
thg 12 16
3303
0
thg 1 16
6743
4
thg 2 19
5462