Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1963 Weergaven

Odoo v10

How to run migrate scripts? How to migrate Odoo between minor versions. For example between version 4.12.2 to 4.12.3?

I read https://odoo-development.readthedocs.io/en/latest/maintenance/data-migration.html 

I created directory called 'migrations' in my custom app and I created directory called 4.12.3 There I created python file called pre-migration.py:

def migrate(cr, installed_version):
print(cr)
print("======================================================")
print("ooooooooooooooooooooooooooooooooooooooooooooooooooooooo")
print("======================================================")

I ran server and my migrate scripts didn't run. I saw in logs that my custom module was loaded, but migration scripts not. How can I run them?


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 25
2236
2
feb. 25
1476
0
aug. 24
2083
2
jan. 24
1691
2
dec. 23
1673