installation fails base_sale_multichannels

Bug #908795 reported by Chris Haus

This bug report was converted into a question: question #183102: installation fails base_sale_multichannels.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Hi,

for the connection to Magento I'd like to install it according to this:
http://openlabs.co.in/article/open-erp-magento-integration-new
(Is this still up to date?)

When I install that module:
base_sale_multichannels
I get the following error (from the GTK client):

Environment Information :
System : Linux-3.0.0-15-generic-x86_64-with-Ubuntu-11.10-oneiric
OS Name : posix
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Operating System Release : 3.0.0-15-generic
Operating System Version : #24-Ubuntu SMP Mon Dec 12 15:23:55 UTC 2011
Operating System Architecture : 64bit
Operating System Locale : de_DE.UTF-8
Python Version : 2.7.2+
OpenERP-Client Version : 6.0.3
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/opt/openerp/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/server/bin/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/opt/openerp/server/bin/pooler.py", line 60, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/opt/openerp/server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/opt/openerp/server/bin/addons/__init__.py", line 883, in load_modules
    processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
  File "/opt/openerp/server/bin/addons/__init__.py", line 748, in load_module_graph
    load_init_update_xml(cr, m, idref, mode, kind)
  File "/opt/openerp/server/bin/addons/__init__.py", line 635, in load_init_update_xml
    tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode, noupdate=noupdate)
  File "/opt/openerp/server/bin/tools/convert.py", line 947, in convert_csv_import
    result, rows, warning_msg, dummy = pool.get(model).import_data(cr, uid, fields, datas,mode, module, noupdate, filename=fname_partial)
  File "/opt/openerp/server/bin/osv/orm.py", line 870, in import_data
    process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
  File "/opt/openerp/server/bin/osv/orm.py", line 820, in process_liness
    res = _get_id(relation, line[i], current_module, mode)
  File "/opt/openerp/server/bin/osv/orm.py", line 734, in _get_id
    record_id = ir_model_data_obj._get_id(cr, uid, module, xml_id)
  File "/opt/openerp/server/bin/tools/misc.py", line 823, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/opt/openerp/server/bin/addons/base/ir/ir_model.py", line 602, in _get_id
    raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to product.group_product_manager

I found some similar errors here, but most of them were really old and should be solved according to what I read.

Any ideas on that?

Thank you in advance
Bye, Chris

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Chris,

"base_sale_multichannels" is part of the extra-addons, which are maintained by the community, including all the modules created by "OpenERP" or "Tiny", as none of these are actively developed by our teams anymore.

You have faced this error because we have removed the project_manager group form trunk's official addons but this group is still available at such place on extra-trunk so you want to remove/replace it then it will work.

So if you or anyone from the community would like to work on it, please mark the bug as "In progress" and assign it to yourself (or ask us or anyone from OpenERP Drivers to do it for you). In the mean time, I will mark it as "Won't fix" to indicate that no further progress is expected at the moment. If you require further assistance with any similar trouble while updating the module, do not hesitate to ask here or via a question: https://answers.launchpad.net/openobject-addons

I hope you understand, and perhaps this explanation will be helpful to you if you start fixing this extra-addon...

Thank you!

PS: For whomever works on fixing this, you probably want to apply/merge your changes in both the 6.0 and trunk branches of extra-addons:

https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons

Changed in openobject-addons:
status: New → Won't Fix
Revision history for this message
Chris Haus (spamonme) wrote :

Hmm .. sounds very difficult.
I had a look at this site:
http://bazaar.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons/files
but the string: "project_manager" cannot be found.

Now I'm downloading (I guess) the branche:

cd /opt/openerp/openerp-server-6.0.3/bin/addons
sudo bzr branch lp:openobject-addons/extra-trunk

Now there is a directory:
extra-trunk which is empty despite a hidden folder:
/opt/openerp/openerp-server-6.0.3/bin/addons/extra-trunk/.bzr

Any ideas how to:
"but this group is still available at such place on extra-trunk so you want to remove/replace it then it will work."
?

Thank you
Bye, Chris

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Chirs,

Your traceback describe that at somewhere the group_product_manager still present and we have already removed this form trunk.

So this type of error generated..:). So just remove this group on extra-addons's module.

Thank you!

Revision history for this message
Chris Haus (spamonme) wrote :

Hi Amit,

what I understood so far after searching the whole website for the code is, that you recommend me to delete the entries from the CSV file?
http://bazaar.launchpad.net/~gbaconnier-c2c/openobject-addons/extra-5.0-base_sale_multichannels-with-payterm/view/head:/base_sale_multichannels/security/ir.model.access.csv
Is that correct?

Now I'd just like to know, when I use the GTK client, where it puts the folder with the csv file inside?
Since I can't find it on my filesystem, I am wondering how I should be able to change something.

If I do sth like this:
bzr branch lp:openobject-addons/extra-6.0
in a new folder in my home dir, I find only a .bzr folder and it is kind of empty (beside some subfolders)

Would be happy if someone points me to the right direction.

Bye, Chris

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Chris,

The branch you mentioned is a private one.

You should normally use the latest extra addons for magento from https://code.launchpad.net/~openerp-commiter/openobject-addons/extra-6.0.
The Trunk-compatible extra addons can be fetched by this command:
bzr branch lp:openobject-addons/extra-trunk

Once the download is finished, I wonder why you would get the folder empty. Instead, you should have got this:

chris@chris:~/workspace/trunk$ bzr branch lp:openobject-addons/extra-trunk extra-addons
Branched 5639 revision(s).
chris@chris:~/workspace/trunk$

Doing 'ls' should list out all such modules under this repository.

Talking about the branch you used (private one), as it shows in the name, it contains the code compatible to version 5.0

As said by Amit, version 6 has changed th names for that group.

You would find this file side your addons directory under server/bin.

Hope this helps.

Thanks,
Serpent Consulting Services.

Note : This could in turn maybe converted into a question.

Revision history for this message
Chris Haus (spamonme) wrote :

Ok .. I got it working. Downloaded the trunk. Now I copied the folder for this module into my server/bin/addons directory.
In the CSV file are no entries with product_manager or group_product_manager.
After trying to install it again, I get a different error:

...
  File "/opt/openerp/server/bin/addons/base/ir/ir_model.py", line 609, in get_object_reference
    data_id = self._get_id(cr, uid, module, xml_id)
  File "/opt/openerp/server/bin/tools/misc.py", line 823, in cached_result
    result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
  File "/opt/openerp/server/bin/addons/base/ir/ir_model.py", line 602, in _get_id
    raise ValueError('No references to %s.%s' % (module, xml_id))
  ValueError: No references to base_external_referentials.external_report_form_view

What do I have to do now?
I can edit the code in my folder base_sale_multichannels/ and subfiles - but where should I do what?

Thanks for your help
Chris

Changed in openobject-addons:
status: Won't Fix → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.