[FIX] Auto Migration for website_sale module

This migration needed if your code-base is upadted with/above commit ref:
e088762a21
This commit is contained in:
Siddharth Bhalgami 2018-03-14 14:43:36 +05:30
parent d0ade88829
commit f82dab43da
3 changed files with 12 additions and 1 deletions

View File

@ -5,7 +5,7 @@
'sequence': 55,
'summary': 'Sell Your Products Online',
'website': 'https://flectrahq.com/page/e-commerce',
'version': '1.0',
'version': '1.1',
'description': "",
'depends': ['website', 'sale_payment', 'website_payment', 'website_mail', 'website_form', 'website_rating'],
'data': [

View File

@ -0,0 +1,6 @@
# -*- 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")

View File

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
def migrate(cr, version):
cr.execute("delete from ir_ui_view where name='website_sale.pricelist.form'")