From: Olivier Dony Date: Mon, 29 Mar 2010 08:56:00 +0000 (+0200) Subject: [FIX] Database creation fixed by breaking the circular dependencies with multi-compan... X-Git-Tag: 6.0.0-rc1-server~1305 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=45e715d7139afc680970dce8d55002a9380a2111;p=odoo%2Fodoo.git [FIX] Database creation fixed by breaking the circular dependencies with multi-company init. Still need to fix the init to re-establish the FK reference on res_users' company_id field. bzr revid: odo@openerp.com-20100329085600-r0pjh7rjyq2rw44n --- diff --git a/bin/addons/base/base.sql b/bin/addons/base/base.sql index 1f7955e..19d401b 100644 --- a/bin/addons/base/base.sql +++ b/bin/addons/base/base.sql @@ -147,7 +147,10 @@ CREATE TABLE res_users ( signature text, -- action_id int references ir_act_window on delete set null, context_lang varchar(64) default '', + -- No FK references below, will be added later by ORM + -- (when the destination rows exist) action_id int, + company_id int, primary key(id) ); alter table res_users add constraint res_users_login_uniq unique (login); @@ -342,7 +345,7 @@ CREATE TABLE ir_model_data ( -- Users --------------------------------- -insert into res_users (id,login,password,name,action_id,active) values (1,'admin',NULL,'Administrator',NULL,True); +insert into res_users (id,login,password,name,action_id,active,company_id) values (1,'admin',NULL,'Administrator',NULL,True,1); insert into ir_model_data (name,module,model,noupdate,res_id) values ('user_root','base','res.users',True,1); -- Compatibility purpose, to remove V6.0 diff --git a/bin/addons/base/base_data.xml b/bin/addons/base/base_data.xml index 4f61dd1..6c9185ee 100644 --- a/bin/addons/base/base_data.xml +++ b/bin/addons/base/base_data.xml @@ -1001,6 +1001,8 @@ Tiny sprl + + @@ -1011,14 +1013,18 @@ (+32).81.81.37.00 default + + - + EUR EUR 0.01 4 + + 1.0 @@ -1042,12 +1048,21 @@ - + + + + + + + - + + + + USD USD