This commit is contained in:
parent
2368ade927
commit
b52ab98e3f
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
|
|
||||||
def migrate(cr, version):
|
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("DO $do$ BEGIN IF EXISTS (SELECT relname FROM pg_class WHERE relname = 'website_product_pricelist') THEN INSERT INTO website_pricelist_rule_rel (website_id,pricelist_id) SELECT website_id,pricelist_id FROM website_product_pricelist; END IF; END $do$")
|
||||||
cr.execute("drop table if exists website_product_pricelist")
|
cr.execute("drop table if exists website_product_pricelist")
|
||||||
|
Loading…
Reference in New Issue
Block a user