Skip to content

Commit

Permalink
Merge pull request #544 from Som-Energia/Fixes_inherited_contracte_lo…
Browse files Browse the repository at this point in the history
…t_tree_view

FIX Vista heretada de contracte lot a v.23.9
  • Loading branch information
anxodio authored Feb 27, 2024
2 parents ec65176 + dd4f0cd commit e3024c0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
<field name="te_generation_polissa" select="2"/>
<field name="data_alta_auto" select="2"/>
</field>
<field name="status" position="before">
<field name="status_tree" position="before">
<field name="import_factures" select="2" />
</field>
<field name="status" position="after">
<field name="status_tree" position="after">
<field name="info_gestions_massives" select="2" />
</field>
</field>
Expand Down
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

0 comments on commit e3024c0

Please sign in to comment.