diff --git a/addons/website_sale/__manifest__.py b/addons/website_sale/__manifest__.py index 593f8fe2..716190ba 100644 --- a/addons/website_sale/__manifest__.py +++ b/addons/website_sale/__manifest__.py @@ -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': [ diff --git a/addons/website_sale/migrations/1.0.1.1/post-migrate_websites_on_pricelist.py b/addons/website_sale/migrations/1.0.1.1/post-migrate_websites_on_pricelist.py new file mode 100644 index 00000000..45a82796 --- /dev/null +++ b/addons/website_sale/migrations/1.0.1.1/post-migrate_websites_on_pricelist.py @@ -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") diff --git a/addons/website_sale/migrations/1.0.1.1/pre-migrate_websites_on_pricelist.py b/addons/website_sale/migrations/1.0.1.1/pre-migrate_websites_on_pricelist.py new file mode 100644 index 00000000..b4a88e7e --- /dev/null +++ b/addons/website_sale/migrations/1.0.1.1/pre-migrate_websites_on_pricelist.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- + + +def migrate(cr, version): + cr.execute("delete from ir_ui_view where name='website_sale.pricelist.form'")