← Back to team overview

openerp-india team mailing list archive

[Bug 1039489] Re: Incorrect import in sale module

 

Hello Damien,

You have faced this error because you have using a windows, So for that
you have to install related package for windows.

This issue is not a bug but it's fixed for to slove the issue of
lp:954005.

Thank you!

** Changed in: openobject-addons
       Status: New => Invalid

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1039489

Title:
  Incorrect import in sale module

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  Hello,

  In the file addons/sale/sale.py, you will see the following import:

  from product._common import rounding

  It tries to import the method rounding from the file _common.py in the
  module product. But the modules product is not at the root of the
  pythonpath. That cause the following error:

  
   [2012-08-20 14:12:07,637][Prisme_Prod] CRITICAL:init:Couldn't load module sale
  [2012-08-20 14:12:07,637][Prisme_Prod] CRITICAL:init:No module named _common
  Traceback (most recent call last):
    File "./openerp-server.py", line 121, in <module>
      db,pool = pooler.get_db_and_pool(dbname, update_module=tools.config['init'] or tools.config['update'], pooljobs=False)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 39, in get_db_and_pool
      addons.load_modules(db, force_demo, status, update_module)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 883, in load_modules
      processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 716, in load_module_graph
      register_class(package.name)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 450, in register_class
      imp.load_module(m, *fm)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/sale/__init__.py", line 26, in <module>
      import sale
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/sale/sale.py", line 29, in <module>
      from product._common import rounding
  ImportError: No module named _common

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1039489/+subscriptions


References