コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5129 ビュー

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

関連投稿 返信 ビュー 活動
0
4月 20
2379
1
6月 18
3606
3
12月 16
3346
0
1月 16
6838
4
2月 19
5531