[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:
parent
d0ade88829
commit
f82dab43da
@ -5,7 +5,7 @@
|
|||||||
'sequence': 55,
|
'sequence': 55,
|
||||||
'summary': 'Sell Your Products Online',
|
'summary': 'Sell Your Products Online',
|
||||||
'website': 'https://flectrahq.com/page/e-commerce',
|
'website': 'https://flectrahq.com/page/e-commerce',
|
||||||
'version': '1.0',
|
'version': '1.1',
|
||||||
'description': "",
|
'description': "",
|
||||||
'depends': ['website', 'sale_payment', 'website_payment', 'website_mail', 'website_form', 'website_rating'],
|
'depends': ['website', 'sale_payment', 'website_payment', 'website_mail', 'website_form', 'website_rating'],
|
||||||
'data': [
|
'data': [
|
||||||
|
@ -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")
|
@ -0,0 +1,5 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
def migrate(cr, version):
|
||||||
|
cr.execute("delete from ir_ui_view where name='website_sale.pricelist.form'")
|
Loading…
Reference in New Issue
Block a user