콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5119 화면

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
2370
1
6월 18
3604
3
12월 16
3342
0
1월 16
6834
4
2월 19
5522