Manage payments using Paypal crashes

Bug #1279772 reported by Alejandro Esteve on 2014-02-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Extra Addons

Bug Description


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

OpenERP Server Error

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/", line 348, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/usr/lib/pymodules/python2.7/openerp/", line 220, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/service/", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/", line 215, in checked_call
    return self.func(*a, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/", line 532, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/", line 1207, in call_button
    action = self._call_kw(model, method, args, {})
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/", line 1195, in _call_kw
    return getattr(request.registry.get(model), method)(, request.uid, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/res/", line 542, in execute
    action = self._install_modules(cr, uid, to_install, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base/res/", 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/", 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/", line 477, in _button_immediate_function
    registry =, update_module=True)
  File "/usr/lib/pymodules/python2.7/openerp/modules/", line 271, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/", line 334, in load_modules
    loaded_modules, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/", 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/", line 175, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/usr/lib/pymodules/python2.7/openerp/modules/", 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/", line 967, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/usr/lib/pymodules/python2.7/openerp/tools/", line 1053, in convert_xml_import
  File "/usr/lib/pymodules/python2.7/openerp/tools/", line 921, in parse
    self._tags[rec.tag](, rec, n)
  File "/usr/lib/pymodules/python2.7/openerp/tools/", 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/", line 236, in _eval_xml
    res = getattr(model, method)(cr, uid, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/payment_paypal/models/", line 75, in _migrate_paypal_account
    }, context=context)
  File "/usr/lib/pymodules/python2.7/openerp/osv/", line 4111, in create
    tuple([f[2] for f in columns if len(f) > 2])
  File "/usr/lib/pymodules/python2.7/openerp/", line 153, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/", 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"/>

Alejandro Esteve (jansalex) wrote :

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

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?

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  Edit
Everyone can see this information.

Other bug subscribers