Code review comment for lp:~openerp-dev/openobject-addons/trunk-base_contact-stw

Revision history for this message
Raphael Collet (OpenERP) (rco-openerp) wrote :

It breaks module stock.
I created a database, and installed base_contact, then sale. The following error occurs:

[2011-11-30 15:09:12,683][foo] INFO:init.load:module stock: loading test/stock_test.yml
[2011-11-30 15:09:15,241][foo] ERROR:db.cursor:bad query: insert into "stock_picking" (id,"address_id","name","auto_picking","move_type","company_id","invoice_state","state","date","type",create_uid,create_date) values (2,41,'test_picking','False','direct',1,'2binvoiced','draft','2011-11-30 15:09:15','out',1,now())
Traceback (most recent call last):
  File "/home/openerp/openerp/server/trunk/openerp/sql_db.py", line 215, in execute
    res = self._obj.execute(query, params)
IntegrityError: insert or update on table "stock_picking" violates foreign key constraint "stock_picking_address_id_fkey"
DETAIL: Key (address_id)=(41) is not present in table "res_partner_job".

review: Needs Fixing

« Back to merge proposal