Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5189 Visualizzazioni

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

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore

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

Autore

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

Post correlati Risposte Visualizzazioni Attività
0
apr 20
2448
1
giu 18
3677
3
dic 16
3394
0
gen 16
6904
4
feb 19
5581