From c0e35f84e23ebda8ea6033711ded5638ef309da2 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sun, 21 Oct 2018 00:04:37 +0200 Subject: [PATCH] [FIX] migration: use correct migration prefix in docstring Migration files must contain `-` in its name for being executed --- odoo/modules/migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo/modules/migration.py b/odoo/modules/migration.py index 7f86b73a0da..78025cbfa11 100644 --- a/odoo/modules/migration.py +++ b/odoo/modules/migration.py @@ -25,8 +25,8 @@ class MigrationManager(object): function. Theses files must respect a directory tree structure: A 'migrations' folder which containt a folder by version. Version can be 'module' version or 'server.module' version (in this case, the files will only be processed by this version of the server). - Python file names must start by `pre` or `post` and will be executed, respectively, - before and after the module initialisation. `end` scripts are run after all modules have + Python file names must start by `pre-` or `post-` and will be executed, respectively, + before and after the module initialisation. `end-` scripts are run after all modules have been updated. Example: