Manage payments using Paypal crashes

Bug #1279772 reported by Alejandro Esteve
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Extra Addons
New
Undecided
Unassigned

Bug Description

openerp_8.0dev-20140213

Changing Configuration --> Account --> Manage payments using Paypal

OpenERP Server Error

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 348, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 220, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 215, in checked_call
    return self.func(*a, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/http.py", line 532, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1207, in call_button
    action = self._call_kw(model, method, args, {})
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1195, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/res/res_config.py", line 542, in execute
    action = self._install_modules(cr, uid, to_install, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/res/res_config.py", line 54, in _install_modules
    result = ir_module.button_immediate_install(cr, uid, to_install_ids, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 426, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/module/module.py", line 477, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 271, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 334, in load_modules
    loaded_modules, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 238, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 175, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 116, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 967, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 1053, in convert_xml_import
    obj.parse(doc.getroot())
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 921, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 380, in _tag_function
    _eval_xml(self,rec, self.pool, cr, uid, self.idref, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 236, in _eval_xml
    res = getattr(model, method)(cr, uid, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/payment_paypal/models/paypal.py", line 75, in _migrate_paypal_account
    }, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4111, in create
    tuple([f[2] for f in columns if len(f) > 2])
  File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 153, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/sql_db.py", line 218, in execute
    res = self._obj.execute(query, params)
ParseError: "null value in column "name" violates not-null constraint
" while parsing /usr/lib/pymodules/python2.7/openerp/addons/payment_paypal/data/paypal.xml:18, near
<function model="payment.acquirer" name="_migrate_paypal_account"/>

Revision history for this message
Alejandro Esteve (jansalex) wrote :

Adding a new DB the problem dessapears. May be the old DB is corrupt.

Revision history for this message
Yashodhan Kulkarni (yashodhan) wrote :

I have same issue, What do you mean by add new DB, adding new DB will change everything and I will have to setup from scratch?

Revision history for this message
Alejandro Esteve (jansalex) wrote :

In my case, the DB was not under production. I hadn't problems removing it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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