Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] sipreco_purchase: script pre-migration para evitar conflictos d…
…e upgrade Forzamos la actualizacion de la vista product_views del modulo stock para que no nos de conflicto con la vista product_template_kanban_stock_view closes #487 Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
- Loading branch information
1 parent
b51d9b3
commit 526d1d7
Showing
2 changed files
with
12 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
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,11 @@ | ||
from openupgradelib import openupgrade | ||
import logging | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
logger.info('Forzamos la actualizacion de la vista product_views del modulo stock para que no nos de conflicto con la vista product_template_kanban_stock_view') | ||
openupgrade.load_data( | ||
env.cr, 'stock', 'views/product_views.xml') |