diff options
| author | Atul Patel (OpenERP) <atp@tinyerp.com> | 2011-03-03 11:50:54 +0530 |
|---|---|---|
| committer | Atul Patel (OpenERP) <atp@tinyerp.com> | 2011-03-03 11:50:54 +0530 |
| commit | bb00f787ee62dc55b955cbca344eaff557ada8d7 (patch) | |
| tree | 213eef7760215fab19492ff3803fc70cd9b9c845 /addons/document | |
| parent | 7ef9c8054afb2978c68903a700b5a9356dc3d7af (diff) | |
| parent | d0b617899aebd30ded00386ea72545941d728742 (diff) | |
[MERGE]: Merge with lp:~openerp-dev/openobject-addons/trunk-import_sugarcrm
bzr revid: atp@tinyerp.com-20110303062054-fy1uftd4vls5nivo
Diffstat (limited to 'addons/document')
| -rw-r--r-- | addons/document/directory_report.py | 4 | ||||
| -rw-r--r-- | addons/document/document.py | 36 | ||||
| -rw-r--r-- | addons/document/i18n/sk.po | 1032 | ||||
| -rw-r--r-- | addons/document/nodes.py | 7 | ||||
| -rw-r--r-- | addons/document/security/ir.model.access.csv | 9 |
5 files changed, 1072 insertions, 16 deletions
diff --git a/addons/document/directory_report.py b/addons/document/directory_report.py index 6eb18dae850..1665a7abf68 100644 --- a/addons/document/directory_report.py +++ b/addons/document/directory_report.py @@ -42,8 +42,12 @@ class ir_action_report_xml(osv.osv): def _model_search(self, cr, uid, obj, name, args, context=None): if not len(args): return [] + assert len(args) == 1 and args[0][1] == '=', 'expression is not what we expect: %r' % args model_id= args[0][2] if not model_id: + # a deviation from standard behavior: when searching model_id = False + # we return *all* reports, not just ones with empty model. + # One reason is that 'model' is a required field so far return [] model = self.pool.get('ir.model').read(cr, uid, [model_id])[0]['model'] report_id = self.search(cr, uid, [('model','=',model)]) diff --git a/addons/document/document.py b/addons/document/document.py index 79fb83b5b1f..1a553b23ed1 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -38,9 +38,9 @@ class document_file(osv.osv): def _attach_parent_id(self, cr, uid, ids=None, context=None): """Migrate ir.attachments to the document module. - + When the 'document' module is loaded on a db that has had plain attachments, - they will need to be attached to some parent folder, and be converted from + they will need to be attached to some parent folder, and be converted from base64-in-bytea to raw-in-bytea format. This function performs the internal migration, once and forever, for these attachments. It cannot be done through the nominal ORM maintenance code, @@ -50,7 +50,7 @@ class document_file(osv.osv): should have had (but would have failed if plain attachments contained null values). """ - + parent_id = self.pool.get('document.directory')._get_root_directory(cr,uid) if not parent_id: logging.getLogger('document').warning("at _attach_parent_id(), still not able to set the parent!") @@ -64,7 +64,7 @@ class document_file(osv.osv): "WHERE parent_id IS NULL", (parent_id,)) cr.execute("ALTER TABLE ir_attachment ALTER parent_id SET NOT NULL") return True - + def _get_filestore(self, cr): return os.path.join(DMS_ROOT_PATH, cr.dbname) @@ -167,19 +167,41 @@ class document_file(osv.osv): def check(self, cr, uid, ids, mode, context=None, values=None): """Check access wrt. res_model, relax the rule of ir.attachment parent - + With 'document' installed, everybody will have access to attachments of any resources they can *read*. """ return super(document_file, self).check(cr, uid, ids, mode='read', context=context, values=values) + def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): + # Grab ids, bypassing 'count' + ids = super(document_file, self).search(cr, uid, args, offset=offset, + limit=limit, order=order, + context=context, count=False) + if not ids: + return 0 if count else [] + + # Filter out documents that are in directories that the user is not allowed to read. + # Must use pure SQL to avoid access rules exceptions (we want to remove the records, + # not fail), and the records have been filtered in parent's search() anyway. + cr.execute('SELECT id, parent_id from "%s" WHERE id in %%s' % self._table, (tuple(ids),)) + doc_pairs = cr.fetchall() + parent_ids = set(zip(*doc_pairs)[1]) + visible_parent_ids = self.pool.get('document.directory').search(cr, uid, [('id', 'in', list(parent_ids))]) + disallowed_parents = parent_ids.difference(visible_parent_ids) + for doc_id, parent_id in doc_pairs: + if parent_id in disallowed_parents: + ids.remove(doc_id) + return len(ids) if count else ids + + def copy(self, cr, uid, id, default=None, context=None): if not default: default = {} if 'name' not in default: - name = self.read(cr, uid, [id])[0]['name'] - default.update({'name': name + " (copy)"}) + name = self.read(cr, uid, [id], ['name'])[0]['name'] + default.update({'name': name + " " + _("(copy)")}) return super(document_file, self).copy(cr, uid, id, default, context=context) def write(self, cr, uid, ids, vals, context=None): diff --git a/addons/document/i18n/sk.po b/addons/document/i18n/sk.po new file mode 100644 index 00000000000..a1f1c2a8f2a --- /dev/null +++ b/addons/document/i18n/sk.po @@ -0,0 +1,1032 @@ +# Slovak translation for openobject-addons +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR <EMAIL@ADDRESS>, 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" +"POT-Creation-Date: 2011-01-11 11:15+0000\n" +"PO-Revision-Date: 2011-02-22 19:28+0000\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: Slovak <sk@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2011-02-23 04:37+0000\n" +"X-Generator: Launchpad (build 12351)\n" + +#. module: document +#: field:document.directory,parent_id:0 +msgid "Parent Directory" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_document_configuration +msgid "Auto Directory Configuration" +msgstr "" + +#. module: document +#: field:document.directory,resource_field:0 +msgid "Name field" +msgstr "" + +#. module: document +#: view:board.board:0 +msgid "Document board" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_process_node +msgid "Process Node" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Search Document Directory" +msgstr "" + +#. module: document +#: help:document.directory,resource_field:0 +msgid "" +"Field to be used as name on resource directories. If empty, the \"name\" " +"will be used." +msgstr "" + +#. module: document +#: code:addons/document/document_directory.py:276 +#, python-format +msgid "Directory name contains special characters!" +msgstr "" + +#. module: document +#: view:document.directory:0 +#: view:document.storage:0 +msgid "Group By..." +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_document_directory_content_type +msgid "Directory Content Type" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Resources" +msgstr "" + +#. module: document +#: field:document.directory,file_ids:0 +#: view:report.document.user:0 +msgid "Files" +msgstr "" + +#. module: document +#: view:report.files.partner:0 +msgid "Files per Month" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "March" +msgstr "" + +#. module: document +#: view:document.configuration:0 +msgid "title" +msgstr "" + +#. module: document +#: view:document.directory:0 +#: field:document.directory,company_id:0 +msgid "Company" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_document_directory_content +msgid "Directory Content" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Dynamic context" +msgstr "" + +#. module: document +#: model:ir.ui.menu,name:document.menu_document_management_configuration +msgid "Document Management" +msgstr "" + +#. module: document +#: help:document.directory.dctx,expr:0 +msgid "" +"A python expression used to evaluate the field.\n" +"You can use 'dir_id' for current dir, 'res_id', 'res_model' as a reference " +"to the current record, in dynamic folders" +msgstr "" + +#. module: document +#: view:report.document.user:0 +msgid "This Year" +msgstr "" + +#. module: document +#: field:document.storage,path:0 +msgid "Path" +msgstr "" + +#. module: document +#: code:addons/document/document_directory.py:266 +#: code:addons/document/document_directory.py:271 +#, python-format +msgid "Directory name must be unique!" +msgstr "" + +#. module: document +#: view:ir.attachment:0 +#: field:ir.attachment,index_content:0 +msgid "Indexed Content" +msgstr "" + +#. module: document +#: help:document.directory,resource_find_all:0 +msgid "" +"If true, all attachments that match this resource will be located. If " +"false, only ones that have this as parent." +msgstr "" + +#. module: document +#: view:document.directory:0 +#: field:document.storage,dir_ids:0 +#: model:ir.actions.act_window,name:document.action_document_directory_form +#: model:ir.ui.menu,name:document.menu_document_directories +msgid "Directories" +msgstr "" + +#. module: document +#: field:document.configuration,sale_order:0 +msgid "Sale Order" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_report_document_user +msgid "Files details by Users" +msgstr "" + +#. module: document +#: field:document.configuration,project:0 +msgid "Project" +msgstr "" + +#. module: document +#: code:addons/document/document_storage.py:573 +#: code:addons/document/document_storage.py:601 +#, python-format +msgid "Error!" +msgstr "" + +#. module: document +#: help:document.configuration,product:0 +msgid "Auto directory configuration for Products." +msgstr "" + +#. module: document +#: field:document.directory,resource_find_all:0 +msgid "Find all resources" +msgstr "" + +#. module: document +#: selection:document.directory,type:0 +msgid "Folders per resource" +msgstr "" + +#. module: document +#: field:document.directory.content,suffix:0 +msgid "Suffix" +msgstr "" + +#. module: document +#: field:report.document.user,change_date:0 +msgid "Modified Date" +msgstr "" + +#. module: document +#: view:document.configuration:0 +msgid "Knowledge Application Configuration" +msgstr "" + +#. module: document +#: view:ir.attachment:0 +#: field:ir.attachment,partner_id:0 +#: field:report.files.partner,partner:0 +msgid "Partner" +msgstr "" + +#. module: document +#: view:board.board:0 +msgid "Files by Users" +msgstr "" + +#. module: document +#: field:process.node,directory_id:0 +msgid "Document directory" +msgstr "" + +#. module: document +#: code:addons/document/document.py:154 +#: code:addons/document/document.py:222 +#: code:addons/document/document_directory.py:266 +#: code:addons/document/document_directory.py:271 +#: code:addons/document/document_directory.py:276 +#, python-format +msgid "ValidateError" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_ir_actions_report_xml +msgid "ir.actions.report.xml" +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.action_document_file_form +#: view:ir.attachment:0 +#: model:ir.ui.menu,name:document.menu_document_doc +#: model:ir.ui.menu,name:document.menu_document_files +msgid "Documents" +msgstr "Dokumenty" + +#. module: document +#: constraint:document.directory:0 +msgid "Error! You can not create recursive Directories." +msgstr "" + +#. module: document +#: view:document.directory:0 +#: field:document.directory,storage_id:0 +msgid "Storage" +msgstr "" + +#. module: document +#: view:document.configuration:0 +msgid "Configure Resource Directory" +msgstr "" + +#. module: document +#: field:ir.attachment,file_size:0 +#: field:report.document.file,file_size:0 +#: field:report.document.user,file_size:0 +#: field:report.files.partner,file_size:0 +msgid "File Size" +msgstr "" + +#. module: document +#: field:document.directory.content.type,name:0 +#: field:ir.attachment,file_type:0 +msgid "Content Type" +msgstr "" + +#. module: document +#: view:document.directory:0 +#: field:document.directory,type:0 +#: view:document.storage:0 +#: field:document.storage,type:0 +msgid "Type" +msgstr "" + +#. module: document +#: help:document.directory,ressource_type_id:0 +msgid "" +"Select an object here and there will be one folder per record of that " +"resource." +msgstr "" + +#. module: document +#: help:document.directory,domain:0 +msgid "" +"Use a domain if you want to apply an automatic filter on visible resources." +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.action_view_files_by_partner +msgid "Files Per Partner" +msgstr "" + +#. module: document +#: field:document.directory,dctx_ids:0 +msgid "Context fields" +msgstr "" + +#. module: document +#: field:ir.attachment,store_fname:0 +msgid "Stored Filename" +msgstr "" + +#. module: document +#: field:document.directory,ressource_type_id:0 +msgid "Resource model" +msgstr "" + +#. module: document +#: view:document.directory:0 +#: field:report.document.user,type:0 +msgid "Directory Type" +msgstr "" + +#. module: document +#: field:document.directory.content,report_id:0 +msgid "Report" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "July" +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.open_board_document_manager +#: model:ir.ui.menu,name:document.menu_reports_document_manager +msgid "Document Dashboard" +msgstr "Nástenka dokumantov" + +#. module: document +#: field:document.directory.content.type,code:0 +msgid "Extension" +msgstr "" + +#. module: document +#: view:ir.attachment:0 +msgid "Created" +msgstr "" + +#. module: document +#: field:document.directory,content_ids:0 +msgid "Virtual Files" +msgstr "" + +#. module: document +#: view:ir.attachment:0 +msgid "Modified" +msgstr "" + +#. module: document +#: code:addons/document/document_storage.py:639 +#, python-format +msgid "Error at doc write!" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Generated Files" +msgstr "" + +#. module: document +#: field:document.directory.content,directory_id:0 +#: field:document.directory.dctx,dir_id:0 +#: model:ir.actions.act_window,name:document.action_document_file_directory_form +#: view:ir.attachment:0 +#: field:ir.attachment,parent_id:0 +#: model:ir.model,name:document.model_document_directory +#: field:report.document.user,directory:0 +msgid "Directory" +msgstr "" + +#. module: document +#: view:board.board:0 +msgid "Files by Partner" +msgstr "" + +#. module: document +#: field:document.directory,write_uid:0 +#: field:document.storage,write_uid:0 +#: field:ir.attachment,write_uid:0 +msgid "Last Modification User" +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.act_res_partner_document +#: model:ir.actions.act_window,name:document.zoom_directory +msgid "Related Documents" +msgstr "Súvisiace dokumenty" + +#. module: document +#: field:document.configuration,progress:0 +msgid "Configuration Progress" +msgstr "" + +#. module: document +#: field:document.directory,domain:0 +msgid "Domain" +msgstr "" + +#. module: document +#: field:document.directory,write_date:0 +#: field:document.storage,write_date:0 +#: field:ir.attachment,write_date:0 +msgid "Date Modified" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_report_document_file +msgid "Files details by Directory" +msgstr "" + +#. module: document +#: view:report.document.user:0 +msgid "All users files" +msgstr "" + +#. module: document +#: view:board.board:0 +#: model:ir.actions.act_window,name:document.action_view_size_month +#: view:report.document.file:0 +msgid "File Size by Month" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "December" +msgstr "" + +#. module: document +#: field:document.configuration,config_logo:0 +msgid "Image" +msgstr "" + +#. module: document +#: selection:document.directory,type:0 +msgid "Static Directory" +msgstr "" + +#. module: document +#: field:document.directory,child_ids:0 +msgid "Children" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Define words in the context, for all child directories and files" +msgstr "" + +#. module: document +#: model:ir.module.module,description:document.module_meta_information +msgid "" +"This is a complete document management system:\n" +" * User Authentication\n" +" * Document Indexation :- .pptx and .docx files are not support in " +"windows platform.\n" +" * Dashboard for Document that includes:\n" +" * New Files (list)\n" +" * Files by Resource Type (graph)\n" +" * Files by Partner (graph)\n" +" * Files by Month (graph)\n" +" ATTENTION:\n" +" - When you install this module in a running company that have already " +"PDF files stored into the database,\n" +" you will lose them all.\n" +" - After installing this module PDF's are no longer stored into the " +"database,\n" +" but in the servers rootpad like /server/bin/filestore.\n" +msgstr "" + +#. module: document +#: help:document.storage,online:0 +msgid "" +"If not checked, media is currently offline and its contents not available" +msgstr "" + +#. module: document +#: view:document.directory:0 +#: field:document.directory,user_id:0 +#: field:document.storage,user_id:0 +#: view:ir.attachment:0 +#: field:ir.attachment,user_id:0 +#: field:report.document.user,user_id:0 +#: field:report.document.wall,user_id:0 +msgid "Owner" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "PDF Report" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Contents" +msgstr "" + +#. module: document +#: field:document.directory,create_date:0 +#: field:document.storage,create_date:0 +#: field:report.document.user,create_date:0 +msgid "Date Created" +msgstr "" + +#. module: document +#: help:document.directory.content,include_name:0 +msgid "" +"Check this field if you want that the name of the file to contain the record " +"name.\n" +"If set, the directory will have to be a resource one." +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.action_config_auto_directory +msgid "Auto Configure Directory" +msgstr "" + +#. module: document +#: field:document.directory.content,include_name:0 +msgid "Include Record Name" +msgstr "" + +#. module: document +#: view:ir.attachment:0 +msgid "Attachment" +msgstr "" + +#. module: document +#: field:ir.actions.report.xml,model_id:0 +msgid "Model Id" +msgstr "" + +#. module: document +#: field:document.storage,online:0 +msgid "Online" +msgstr "" + +#. module: document +#: help:document.directory,ressource_tree:0 +msgid "" +"Check this if you want to use the same tree structure as the object selected " +"in the system." +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Security" +msgstr "" + +#. module: document +#: help:document.directory,ressource_id:0 +msgid "" +"Along with Parent Model, this ID attaches this folder to a specific record " +"of Parent Model." +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "August" +msgstr "" + +#. module: document +#: sql_constraint:document.directory:0 +msgid "Directory cannot be parent of itself!" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "June" +msgstr "" + +#. module: document +#: field:report.document.user,user:0 +#: field:report.document.wall,user:0 +msgid "User" +msgstr "" + +#. module: document +#: field:document.directory,group_ids:0 +#: field:document.storage,group_ids:0 +msgid "Groups" +msgstr "" + +#. module: document +#: field:document.directory.content.type,active:0 +msgid "Active" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "November" +msgstr "" + +#. module: document +#: view:ir.attachment:0 +#: field:ir.attachment,db_datas:0 +msgid "Data" +msgstr "" + +#. module: document +#: help:document.directory,ressource_parent_type_id:0 +msgid "" +"If you put an object here, this directory template will appear bellow all of " +"these objects. Such directories are \"attached\" to the specific model or " +"record, just like attachments. Don't put a parent directory if you select a " +"parent model." +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Definition" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "October" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Seq." +msgstr "" + +#. module: document +#: selection:document.storage,type:0 +msgid "Database" +msgstr "" + +#. module: document +#: help:document.configuration,project:0 +msgid "Auto directory configuration for Projects." +msgstr "" + +#. module: document +#: view:ir.attachment:0 +msgid "Related to" +msgstr "" + +#. module: document +#: model:ir.module.module,shortdesc:document.module_meta_information +msgid "Integrated Document Management System" +msgstr "" + +#. module: document +#: view:document.configuration:0 +msgid "Choose the following Resouces to auto directory configuration." +msgstr "" + +#. module: document +#: view:ir.attachment:0 +msgid "Attached To" +msgstr "" + +#. module: document +#: model:ir.ui.menu,name:document.menu_reports_document +msgid "Dashboard" +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.action_view_user_graph +msgid "Files By Users" +msgstr "" + +#. module: document +#: field:document.storage,readonly:0 +msgid "Read Only" +msgstr "" + +#. module: document +#: field:document.directory.dctx,expr:0 +msgid "Expression" +msgstr "" + +#. module: document +#: sql_constraint:document.directory:0 +msgid "The directory name must be unique !" +msgstr "" + +#. module: document +#: field:document.directory,create_uid:0 +#: field:document.storage,create_uid:0 +msgid "Creator" +msgstr "" + +#. module: document +#: view:board.board:0 +#: model:ir.actions.act_window,name:document.action_view_files_by_month_graph +#: view:report.document.user:0 +msgid "Files by Month" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "September" +msgstr "" + +#. module: document +#: field:document.directory.content,prefix:0 +msgid "Prefix" +msgstr "" + +#. module: document +#: field:report.document.wall,last:0 +msgid "Last Posted Time" +msgstr "" + +#. module: document +#: field:report.document.user,datas_fname:0 +msgid "File Name" +msgstr "" + +#. module: document +#: view:document.configuration:0 +msgid "res_config_contents" +msgstr "" + +#. module: document +#: field:document.directory,ressource_id:0 +msgid "Resource ID" +msgstr "" + +#. module: document +#: selection:document.storage,type:0 +msgid "External file storage" +msgstr "" + +#. module: document +#: view:board.board:0 +#: model:ir.actions.act_window,name:document.action_view_wall +#: view:report.document.wall:0 +msgid "Wall of Shame" +msgstr "" + +#. module: document +#: help:document.storage,path:0 +msgid "For file storage, the root path of the storage" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_report_files_partner +msgid "Files details by Partners" +msgstr "" + +#. module: document +#: field:document.directory.dctx,field:0 +msgid "Field" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_document_directory_dctx +msgid "Directory Dynamic Context" +msgstr "" + +#. module: document +#: field:document.directory,ressource_parent_type_id:0 +msgid "Parent Model" +msgstr "" + +#. module: document +#: view:report.document.user:0 +msgid "Files by users" +msgstr "" + +#. module: document +#: field:report.document.file,month:0 +#: field:report.document.user,month:0 +#: field:report.document.wall,month:0 +#: field:report.document.wall,name:0 +#: field:report.files.partner,month:0 +msgid "Month" +msgstr "" + +#. module: document +#: model:ir.ui.menu,name:document.menu_reporting +msgid "Reporting" +msgstr "" + +#. module: document +#: field:document.configuration,product:0 +msgid "Product" +msgstr "" + +#. module: document +#: field:document.directory,ressource_tree:0 +msgid "Tree Structure" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "May" +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.action_view_all_document_tree1 +msgid "All Users files" +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_report_document_wall +msgid "Users that did not inserted documents since one month" +msgstr "" + +#. module: document +#: model:ir.actions.act_window,help:document.action_document_file_form +msgid "" +"The Documents repository gives you access to all attachments, such as mails, " +"project documents, invoices etc." +msgstr "" +"Úložisko dokumentov umožňuje prístup ku všetkým prílohám ako sú maily, " +"projektové dokumentácie alebo faktúry atď.." + +#. module: document +#: view:document.directory:0 +msgid "For each entry here, virtual files will appear in this folder." +msgstr "" + +#. module: document +#: model:ir.model,name:document.model_ir_attachment +msgid "ir.attachment" +msgstr "" + +#. module: document +#: view:board.board:0 +msgid "New Files" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "January" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Static" +msgstr "" + +#. module: document +#: view:report.files.partner:0 +msgid "Files By Partner" +msgstr "" + +#. module: document +#: help:document.directory.dctx,field:0 +msgid "" +"The name of the field. Note that the prefix \"dctx_\" will be prepended to " +"what is typed here." +msgstr "" + +#. module: document +#: view:report.document.user:0 +msgid "This Month" +msgstr "" + +#. module: document +#: view:ir.attachment:0 +msgid "Notes" +msgstr "" + +#. module: document +#: help:document.configuration,sale_order:0 +msgid "" +"Auto directory configuration for Sale Orders and Quotation with report." +msgstr "" + +#. module: document +#: help:document.directory,type:0 +msgid "" +"Each directory can either have the type Static or be linked to another " +"resource. A static directory, as with Operating Systems, is the classic " +"directory that can contain a set of files. The directories linked to systems " +"resources automatically possess sub-directories for each of resource types " +"defined in the parent directory." +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "February" +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.open_board_document_manager1 +#: model:ir.ui.menu,name:document.menu_reports_document_manager1 +msgid "Statistics by User" +msgstr "" + +#. module: document +#: field:document.directory,name:0 +#: field:document.storage,name:0 +msgid "Name" +msgstr "" + +#. module: document +#: sql_constraint:document.storage:0 +msgid "The storage path must be unique!" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "Fields" +msgstr "" + +#. module: document +#: help:document.storage,readonly:0 +msgid "If set, media is for reading only" +msgstr "" + +#. module: document +#: selection:report.document.user,month:0 +#: selection:report.files.partner,month:0 +msgid "April" +msgstr "" + +#. module: document +#: field:report.document.file,nbr:0 +#: field:report.document.user,nbr:0 +#: field:report.files.partner,nbr:0 +msgid "# of Files" +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "" +"Only members of these groups will have access to this directory and its " +"files." +msgstr "" + +#. module: document +#: view:document.directory:0 +msgid "" +"These groups, however, do NOT apply to children directories, which must " +"define their own groups." +msgstr "" + +#. module: document +#: field:document.directory.content.type,mimetype:0 +msgid "Mime Type" +msgstr "" + +#. module: document +#: field:document.directory.content,sequence:0 +msgid "Sequence" +msgstr "" + +#. module: document +#: field:document.directory.content,name:0 +msgid "Content Name" +msgstr "" + +#. module: document +#: code:addons/document/document.py:154 +#: code:addons/document/document.py:222 +#, python-format +msgid "File name must be unique!" +msgstr "" + +#. module: document +#: selection:document.storage,type:0 +msgid "Internal File storage" +msgstr "" + +#. module: document +#: sql_constraint:document.directory:0 +msgid "Directory must have a parent or a storage" +msgstr "" + +#. module: document +#: model:ir.actions.act_window,name:document.action_document_directory_tree +#: model:ir.ui.menu,name:document.menu_document_directories_tree +msgid "Directories' Structure" +msgstr "" + +#. module: document +#: view:board.board:0 +#: model:ir.actions.act_window,name:document.action_view_document_by_resourcetype_graph +#: view:report.document.user:0 +msgid "Files by Resource Type" +msgstr "" + +#. module: document +#: field:report.document.user,name:0 +#: field:report.files.partner,name:0 +msgid "Year" +msgstr "" + +#. module: document +#: view:document.storage:0 +#: model:ir.model,name:document.model_document_storage +#: model:ir.ui.menu,name:document.menu_document_storage_media +msgid "Storage Media" +msgstr "" + +#. module: document +#: view:document.storage:0 +msgid "Search Document storage" +msgstr "" + +#. module: document +#: field:document.directory.content,extension:0 +msgid "Document Type" +msgstr "" diff --git a/addons/document/nodes.py b/addons/document/nodes.py index 1b7aebcd389..0c4194847c1 100644 --- a/addons/document/nodes.py +++ b/addons/document/nodes.py @@ -23,6 +23,7 @@ import pooler from tools.safe_eval import safe_eval +from tools.misc import ustr import errno # import os import time @@ -808,7 +809,7 @@ class node_res_dir(node_class): return res[0] return None - def _child_get(self, cr, name = None, domain=None): + def _child_get(self, cr, name=None, domain=None): """ return virtual children of resource, based on the foreign object. @@ -868,7 +869,7 @@ class node_res_dir(node_class): # Escape the name for characters not supported in filenames res_name = res_name.replace('/','_') # any other weird char? - if name and (res_name != name): + if name and (res_name != ustr(name)): # we have matched _ to any character, but we only meant to match # the special ones. # Eg. 'a_c' will find 'abc', 'a/c', 'a_c', may only @@ -1044,7 +1045,7 @@ class node_res_obj(node_class): if not res_name: continue res_name = res_name.replace('/', '_') - if name and (res_name != name): + if name and (res_name != ustr(name)): continue # TODO Revise klass = directory.get_node_class(directory, dynamic=True, context=ctx) diff --git a/addons/document/security/ir.model.access.csv b/addons/document/security/ir.model.access.csv index 0422edba24e..74befa56d41 100644 --- a/addons/document/security/ir.model.access.csv +++ b/addons/document/security/ir.model.access.csv @@ -2,10 +2,8 @@ "access_document_directory_all","document.directory all","model_document_directory",,1,0,0,0 "access_document_directory_group_document_manager","document.directory document manager","model_document_directory","base.group_system",1,1,1,1 "access_document_directory_group_knowledge","document.directory modify","model_document_directory","base.group_document_user",1,1,1,1 -"access_document_directory_group_system","document.directory group system","model_document_directory","base.group_system",1,1,1,1 "access_document_directory_content_all","document.directory.content all","model_document_directory_content",,1,0,0,0 "access_document_directory_content_group_document_manager","document.directory.content document manager","model_document_directory_content","base.group_system",1,1,1,1 -"access_document_directory_content_group_system","document.directory.content group system","model_document_directory_content","base.group_system",1,1,1,1 "access_document_directory_content_type_group_document_manager","document.directory.content.type document manager","model_document_directory_content_type","base.group_system",1,1,1,1 "access_document_directory_content_type_group_system","document.directory.content.type group system","model_document_directory_content_type","base.group_user",1,0,0,0 "access_document_storage_group_document_manager","document.storage document manager","model_document_storage","base.group_system",1,1,1,1 @@ -16,13 +14,12 @@ "access_res_partner_group_user","res.partner user","base.model_res_partner","base.group_document_user",1,1,1,1 "access_document_directory_dctx_all","document.directory.dctx all","model_document_directory_dctx",,1,0,0,0 "access_document_directory_dctx_group_document_manager","document.directory.dctx document manager","model_document_directory_dctx","base.group_system",1,1,1,1 -"access_document_directory_dctx_group_system","document.directory.dctx group system","model_document_directory_dctx","base.group_system",1,1,1,1 "access_report_document_user_group_document_manager","report.document.user document manager","model_report_document_user","base.group_system",1,0,0,0 -"access_report_document_user_group_system","report.document.user group system","model_report_document_user","base.group_system",1,0,0,0 "access_report_files_partner_group_document_manager","report.files.partner document manager","model_report_files_partner","base.group_system",1,0,0,0 -"access_report_files_partner_group_system","report.files.partner group system","model_report_files_partner","base.group_system",1,0,0,0 "access_report_document_file_group_document_manager","report.document.file document manager","model_report_document_file","base.group_system",1,0,0,0 -"access_report_document_file_group_system","report.document.file group system","model_report_document_file","base.group_system",1,0,0,0 "access_report_document_wall_group_document_manager","report.document.wall document manager","model_report_document_wall","base.group_system",1,0,0,0 "access_report_document_wall_group_system","report.document.wall group system","model_report_document_wall","base.group_system",1,0,0,0 +"access_report_files_partner_group_document","report.files.partner document manager","model_report_files_partner","base.group_document_user",1,0,0,0 +"access_report_document_file_group_document","report.document.file document manager","model_report_document_file","base.group_document_user",1,0,0,0 +"access_report_document_wall_group_document","report.document.wall document manager","model_report_document_wall","base.group_document_user",1,0,0,0 "access_report_document_user_knowledgeuser","report.document.user knowledgeuser","document.model_report_document_user","base.group_document_user",1,0,0,0 |
