diff --git a/som_facturacio_comer/giscedata_facturacio_contracte_lot_view.xml b/som_facturacio_comer/giscedata_facturacio_contracte_lot_view.xml index 905368d5d..5b8783fc9 100644 --- a/som_facturacio_comer/giscedata_facturacio_contracte_lot_view.xml +++ b/som_facturacio_comer/giscedata_facturacio_contracte_lot_view.xml @@ -43,10 +43,10 @@ - + - + diff --git a/som_facturacio_comer/migrations/5.0.24.5.0/post-0001_load_views_contracte_lot_tree.py b/som_facturacio_comer/migrations/5.0.24.5.0/post-0001_load_views_contracte_lot_tree.py new file mode 100644 index 000000000..d9d41da0b --- /dev/null +++ b/som_facturacio_comer/migrations/5.0.24.5.0/post-0001_load_views_contracte_lot_tree.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +import logging +from oopgrade.oopgrade import load_data_records + + +def up(cursor, installed_version): + if not installed_version: + return + + logger = logging.getLogger("openerp.migration") + + logger.info("Updating XML record for view polisses.facturacio.contracte.lot.som.tree") + load_data_records( + cursor, "som_facturacio_comer", "giscedata_facturacio_contracte_lot_view.xml", + ["view_giscedata_facturacio_contracte_lot_som_tree"], idref=None, mode="update" + ) + + logger.info("XML record succesfully updatd.") + + +def down(cursor, installed_version): + pass + + +migrate = up