c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12378
[Bug 666247] Re: Problem when uploading a file via ftp in document management module
Change the 586'th line :
'group_ids': fields.many2many('res.groups', 'document_directory_group_rel', 'item_id', 'group_id', 'Groups'),
to
'group_ids': fields.many2many('res.groups', 'ir_attachment_group_rel', 'item_id', 'group_id', 'Groups'),
It seems to work with a fresh install.
For an already exist install, I suppose that you have to reaffect group for each document you have already put on the server.
Do you think it's a good way to sove the problem?
** Attachment added: "Maybe functional files security management for document module"
https://bugs.launchpad.net/openobject-addons/+bug/666247/+attachment/1792483/+files/document.py
--
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
References