← Back to team overview

credativ team mailing list archive

[Bug 903474] Re: error "ir_ui_menu" violates foreign key constraint "res_portal_parent_menu_id_fkey" on table "res_portal"

 

Hello,

Thanks for your fix! It landed in trunk.
revno: 6270
revision-id: tde@xxxxxxxxxxx-20120105102335-o42884gaqms65rsu

Regards,

Thibault.

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/903474

Title:
  error "ir_ui_menu" violates foreign key constraint
  "res_portal_parent_menu_id_fkey" on table "res_portal"

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  I have installed portal and get the error

  
   delete from
                          ir_ui_menu
                      where
                          (id not IN (select parent_id from ir_ui_menu where parent_id is not null))
                      and
                          (id not IN (select res_id from ir_values where model='ir.ui.menu'))
                      and
                          (id not IN (select res_id from ir_model_data where model='ir.ui.menu'))
  Traceback (most recent call last):
    File "/home/srv/openerp/instances/trunk/openobject-server/openerp/sql_db.py", line 215, in execute
      res = self._obj.execute(query, params)
  IntegrityError: update or delete on table "ir_ui_menu" violates foreign key constraint "res_portal_parent_menu_id_fkey" on table "res_portal"
  DETAIL:  Key (id)=(720) is still referenced from table "res_portal".

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/903474/+subscriptions


References