From 8cbdab27f41587573d7e70524cd5823f02881ed1 Mon Sep 17 00:00:00 2001 From: ced <> Date: Wed, 14 Mar 2007 11:09:42 +0000 Subject: [PATCH] MIGRATE: add warning for account_uos bzr revid: ced-1be082ce6447f31a4fcefaa8973105492f5aad38 --- doc/migrate/3.4.0-4.0.0/post.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/migrate/3.4.0-4.0.0/post.py b/doc/migrate/3.4.0-4.0.0/post.py index 9630393508d..a08521092c2 100644 --- a/doc/migrate/3.4.0-4.0.0/post.py +++ b/doc/migrate/3.4.0-4.0.0/post.py @@ -106,5 +106,14 @@ cr.execute("ALTER TABLE account_invoice_line DROP CONSTRAINT account_invoice_lin cr.execute("ALTER TABLE account_invoice_line ADD FOREIGN KEY (uos_id) REFERENCES product_uom(id) ON DELETE SET NULL") cr.commit() +print """ +WARNING: account_uos has been replaced by product_uom. +It is not possible to migrate the data automatically so you need to create the old account_uos in the new product_uom. +And then update the field uos_id of the table account_invoice to match the new id of product_uom. + +EXAMPLE: + UPDATE account_invoice SET uos_id = new_id WHERE uos_id = old_id; +""" + cr.close()