MIGRATE: add warning for account_uos

bzr revid: ced-1be082ce6447f31a4fcefaa8973105492f5aad38
This commit is contained in:
ced 2007-03-14 11:09:42 +00:00
parent 4f6f0cfbab
commit 8cbdab27f4
1 changed files with 9 additions and 0 deletions

View File

@ -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()