Skip to content

Commit c39df99

Browse files
committed
[FIX] product_catalog_aeroo_report: add pre-migration script for category type migration
closes #903 X-original-commit: 33f019f Signed-off-by: Juan Carreras <jc@adhoc.com.ar> Signed-off-by: Franco Leyes <lef@adhoc.com.ar>
1 parent 17ab33d commit c39df99

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def migrate(cr, version):
2+
cr.execute(
3+
"UPDATE product_product_catalog_report "
4+
"SET category_type = 'product_category' "
5+
"WHERE category_type = 'accounting_category'"
6+
)

0 commit comments

Comments
 (0)