After code analyse, I can reproduce this bug with a 5.0.15 fresh install. This portion of error message DETAIL: Key (item_id)=(228) is not present in table "document_directory" give us the information that 228 is not prensent in document_directory table. It's logic because this table list directories, not documents (that are in ir.attachment table).
So, when we increase the id of our documents, when we are over the most id of directory, the database refuse to be updated because of id of the document isn't in the list of directory. It could have an ir_attachment_group_rel table to reference security rules for each document . -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to the OpenERP Project Group. https://bugs.launchpad.net/bugs/666247 Title: Problem when uploading a file via ftp in document management module Status in OpenObject Addons Modules: Confirmed Bug description: hi, this is the full cause of problem.i go to the document management module::search a file::New. in the new section when i choose a file and attach it without any further changes it operates fine .but when i go to security tab and add some groups i get the following integrity error: Integrity Error insert or update on table "document_directory_group_rel" violates foreign key constraint "document_directory_group_rel_item_id_fkey" DETAIL: Key (item_id)=(228) is not present in table "document_directory". what is it?? thank you _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

