-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] pos_change_sale_move: migration file
The purpose of this migration file is to set the right Sale Move Policy for databases where the previous version of this module was installed in order to not change the behaviour of this module on theses databases.
- Loading branch information
1 parent
46c24c2
commit 28065fc
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
grap_pos_change_sale_move/migrations/12.0.2.0.0/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2021 - Today: Coop IT Easy (http://coopiteasy.be) | ||
# @author: Rémy TAYMANS ([email protected]) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
|
||
def migrate(cr, version): | ||
# Set default configuration for pos.config to not change de previous | ||
# behaviour of this module | ||
query = "UPDATE pos_config SET sale_move_policy = 'groupby_account_tax';" | ||
cr.execute(query) |