Skip to content

Commit

Permalink
[ADD] pos_change_sale_move: migration file
Browse files Browse the repository at this point in the history
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
remytms authored and carmenbianca committed Aug 24, 2022
1 parent 46c24c2 commit 28065fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion grap_pos_change_sale_move/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Point Of Sale - Change Sale Move Lines",
"version": "12.0.1.0.2",
"version": "12.0.2.0.1",
"category": "Point Of Sale",
"author": "GRAP",
"website": "https://github.com/grap/grap-odoo-custom-account",
Expand Down
10 changes: 10 additions & 0 deletions grap_pos_change_sale_move/migrations/12.0.2.0.0/post-migration.py
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)

0 comments on commit 28065fc

Please sign in to comment.