← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 657108] Re: Variable type error when trying to install on Version 6

 

Hi Everyone, I have also the same bug :


Environment Information : 
System : Windows-32bit
OS Name : nt
Operating System Release : 
Operating System Version : 32bit
Operating System Architecture : 32bit
Operating System Locale : fr_FR.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 6.0.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/opt/6.0.2_openerp/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/opt/6.0.2_openerp/server/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/opt/6.0.2_openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/opt/6.0.2_openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/opt/6.0.2_openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp6/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 "/home/opt/6.0.2_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 "/home/opt/6.0.2_openerp/server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/opt/6.0.2_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 "/home/opt/6.0.2_openerp/server/bin/addons/__init__.py", line 719, in load_module_graph
    init_module_objects(cr, package.name, modules)
  File "/home/opt/6.0.2_openerp/server/bin/addons/__init__.py", line 414, in init_module_objects
    result = obj._auto_init(cr, {'module': module_name})
  File "/opt/openerp6/server/bin/addons/magentoerpconnect/sale.py", line 283, in _auto_init
    cr.execute("ALTER TABLE account_invoice_line ALTER COLUMN discount TYPE numeric(16,6);")
  File "/home/opt/6.0.2_openerp/server/bin/sql_db.py", line 78, in wrapper
    return f(self, *args, **kwargs)
  File "/home/opt/6.0.2_openerp/server/bin/sql_db.py", line 131, in execute
    res = self._obj.execute(query, params)
NotSupportedError: ERREUR:  ne peut pas modifier le type d'une colonne utilisée dans une vue ou une règle
DETAIL:  règle _RETURN activevue report_account_invoice_product dépend de la colonne « discount »

It seems this is not because of sale_journal but a more generic account
module. I'll retry with a minimal install.

-- 
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/657108

Title:
  Variable type error when trying to install on Version 6

Status in Magento Open ERP Connector:
  New

Bug description:
  When trying to install magento_connector module on Version 6, i get
  the following error

  [2010-10-08 18:13:46,439][magentotest] ERROR:db.cursor:bad query: ALTER TABLE sale_order_line ALTER COLUMN discount TYPE numeric(16,6);
  Traceback (most recent call last):
    File "/opt/openerp/openobject-server/bin/sql_db.py", line 122, in execute
      res = self._obj.execute(query, params)
  NotSupportedError: cannot alter type of a column used by a view or rule
  DETAIL:  rule _RETURN on view sale_journal_picking_report depends on column "discount"

  [2010-10-08 18:13:46,440][magentotest] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/opt/openerp/openobject-server/bin/osv/osv.py", line 57, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp/openobject-server/bin/osv/osv.py", line 140, in execute
      res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openerp/openobject-server/bin/osv/osv.py", line 130, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openerp/openobject-server/bin/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
      db, pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/opt/openerp/openobject-server/bin/pooler.py", line 61, in restart_pool
      return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
    File "/opt/openerp/openobject-server/bin/pooler.py", line 39, in get_db_and_pool
      addons.load_modules(db, force_demo, status, update_module)
    File "/opt/openerp/openobject-server/bin/addons/__init__.py", line 842, in load_modules
      r = load_module_graph(cr, graph, status, report=report)
    File "/opt/openerp/openobject-server/bin/addons/__init__.py", line 690, in load_module_graph
      init_module_objects(cr, package.name, modules)
    File "/opt/openerp/openobject-server/bin/addons/__init__.py", line 394, in init_module_objects
      result = obj._auto_init(cr, {'module': module_name})
    File "/opt/openerp/addons/magentoerpconnect/sale.py", line 184, in _auto_init
      cr.execute("ALTER TABLE sale_order_line ALTER COLUMN discount TYPE numeric(16,6);")
    File "/opt/openerp/openobject-server/bin/sql_db.py", line 75, in wrapper
      return f(self, *args, **kwargs)
    File "/opt/openerp/openobject-server/bin/sql_db.py", line 122, in execute
      res = self._obj.execute(query, params)
  NotSupportedError: cannot alter type of a column used by a view or rule
  DETAIL:  rule _RETURN on view sale_journal_picking_report depends on column "discount"