Skip to content

Commit

Permalink
[FIX] sipreco_purchase: script pre-migration para evitar conflictos d…
Browse files Browse the repository at this point in the history
…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
pablohmontenegro authored and zaoral committed May 23, 2023
1 parent b51d9b3 commit 526d1d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sipreco_purchase/__manifest__.py
@@ -1,6 +1,6 @@
{
'name': 'Sipreco Purchase Management',
'version': "15.0.1.2.0",
'version': "15.0.1.3.0",
'license': 'AGPL-3',
'author': 'ADHOC SA,Odoo Community Association (OCA)',
'website': 'www.adhoc.com.ar',
Expand Down
11 changes: 11 additions & 0 deletions sipreco_purchase/migrations/15.0.1.3.0/pre-migration.py
@@ -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')

0 comments on commit 526d1d7

Please sign in to comment.