Skip to content

Commit

Permalink
[IMP] data: bump version to 25
Browse files Browse the repository at this point in the history
The purpose of this commit is only to allow migration defined in odoo
to be executed. This is not ideal but it is the only way to make it work
with the current setup.

Ideally, the migration version should be bumped automatically when the
freeze is done, but this part should be discussed.

See odoo/odoo@80a18fa#diff-96d495629fafbb1f70eb713faca6ec7b2c8416b4addb1fc53b798c1d8ab9fa42

closes #5382

Task: 0
Signed-off-by: Rémi Rahir (rar) <[email protected]>
  • Loading branch information
pro-odoo committed Dec 26, 2024
1 parent c520e89 commit 089ee4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { migrationStepRegistry } from "./migration_steps";
* a breaking change is made in the way the state is handled, and an upgrade
* function should be defined
*/
export const CURRENT_VERSION = 24;
export const CURRENT_VERSION = 25;
const INITIAL_SHEET_ID = "Sheet1";

/**
Expand Down
7 changes: 7 additions & 0 deletions src/migrations/migration_steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,13 @@ migrationStepRegistry
}
return data;
},
})
.add("migration_24", {
// Empty migration to allow odoo migrate pivot custom sorting.
versionFrom: "24",
migrate(data: WorkbookData): any {
return data;
},
});

function fixOverlappingFilters(data: any): any {
Expand Down

0 comments on commit 089ee4f

Please sign in to comment.