flectra/addons/website_sale/migrations/1.0.1.1/post-migrate_websites_on_pricelist.py
Siddharth Bhalgami f82dab43da [FIX] Auto Migration for website_sale module
This migration needed if your code-base is upadted with/above commit ref:
e088762a21
2018-03-14 14:43:42 +05:30

7 lines
252 B
Python

# -*- coding: utf-8 -*-
def migrate(cr, version):
cr.execute("insert into website_pricelist_rule_rel (website_id,pricelist_id) select website_id,pricelist_id from website_product_pricelist")
cr.execute("drop table website_product_pricelist")