-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from Som-Energia/Fixes_inherited_contracte_lo…
…t_tree_view FIX Vista heretada de contracte lot a v.23.9
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
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
25 changes: 25 additions & 0 deletions
25
som_facturacio_comer/migrations/5.0.24.5.0/post-0001_load_views_contracte_lot_tree.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,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 |