Skip to content

Error installing document_webdav_fast #1

@diassynthesis

Description

@diassynthesis

Hi;

I'm getting the following error when trying to install document_webdav_fast:

----------Error begin-----

2014-05-31 07:30:14,031 15923 INFO DevDB openerp.modules.loading: module document_webdav_fast: loading webdav_view.xml
2014-05-31 07:30:14,818 15923 INFO DevDB openerp.modules.loading: module document_webdav_fast: loading webdav_setup.xml
2014-05-31 07:30:14,861 15923 ERROR DevDB openerp.tools.convert: Parse error in /usr/lib/pymodules/python2.7/openerp/addons/document_webdav_fast/webdav_setup.xml:11

         < record id="document_directory_principals0" model="document.directory">
                        <field name="domain">[]</field>
                        <field eval="1" name="resource_find_all"/>
                        <field eval="0" name="ressource_tree"/>
                        <field name="user_id" eval="False"/>
                         <field name="company_id" ref="base.main_company"/>
                        <field name="type">directory</field>
                        <field eval="[(6,0,[])]" name="group_ids"/>
                       <field name="name">principals</field>
         </record>
        Traceback (most recent call last):
        File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 852, in parse
       self._tags[rec.tag](self.cr, rec, n)
       File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 819, in      _tag_record
       id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model,   self.module,      res, rec_id or False, not self.isnoupdate(data_node),    noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
      File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_model.py", line 971, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
       File "/usr/lib/pymodules/python2.7/openerp/addons/document/document.py", line   353, in create
      raise osv.except_osv(_('ValidateError'), _('Directory name must be unique!'))
        except_osv: (u'Erreur de validation', u'Le nom du r\xe9pertoire doit \xeatre unique!')
        2014-05-31 07:30:14,922 15923 ERROR DevDB openerp.netsvc: Erreur de validation
        Le nom du répertoire doit être unique!

-----------Error End------

This is related to the directory named principals which already exist.
I think, i will get this error also with the following directories: ( uids , resources, users and groups) , which already exists. (cause i've the module document_webdav already installed).

So, my question is: Can we have the module document_webdav_fast installed allong with the document_webdav module ?

If not, when uninstalling document_webdav, what about the others modules (if any) which depends on it ?

Why not propose merging document_webdav_fast in OpenERP addons (and replacing the old document_webdav?

Or, why not changing the code, and use the existing directories (if those directories already exist) ?

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions