[Trunk] bank reconciliation error with voucher without partner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP R&D Addons Team 3 | ||
openerp-account_voucher_group |
New
|
Undecided
|
Unassigned |
Bug Description
Apparently, if you try to process a voucher that was imported in a bank statement reconciliation which does not have a partner set, there will be an error (see below). "Creating-
Reproduction: (please can anyone outside my system confirm?)
1. create a voucher without a partner
2. import it to the bank statment
3. validate the bank statment
openerp 7.0 - all up to date
Client Traceback (most recent call last):
File "/opt/openerp/
response[
File "/opt/openerp/
action = self._call_kw(req, model, method, args, {})
File "/opt/openerp/
return getattr(
File "/opt/openerp/
result = self.proxy.
File "/opt/openerp/
result = self.session.
File "/opt/openerp/
raise xmlrpclib.
Server Traceback (most recent call last):
File "/opt/openerp/
return openerp.
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
return super(account_
File "/opt/openerp/
self.
File "/opt/openerp/
wf_
File "/opt/openerp/
res2 = instance.
File "/opt/openerp/
workitem.
File "/opt/openerp/
ok = _split_test(cr, workitem, activity[
File "/opt/openerp/
_join_test(cr, t[0], t[1], ident, stack)
File "/opt/openerp/
create(
File "/opt/openerp/
process(cr, res, ident, stack=stack)
File "/opt/openerp/
result = _execute(cr, workitem, activity, ident, stack)
File "/opt/openerp/
returned_action = wkf_expr.
File "/opt/openerp/
return _eval_expr(cr, ident, workitem, activity['action'])
File "/opt/openerp/
ret = eval(line, env, nocopy=True)
File "/opt/openerp/
return eval(test_
File "", line 1, in <module>
File "/opt/openerp/
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/opt/openerp/
self.
File "/opt/openerp/
ml_writeoff = self.writeoff_
File "/opt/openerp/
account_id = voucher_
AttributeError: 'NoneType' object has no attribute 'id'
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 55 lines (+13/-6)2 files modifiedaccount_voucher/account_voucher.py (+8/-3)
account_voucher/voucher_sales_purchase_view.xml (+5/-3)
description: | updated |
description: | updated |
affects: | openobject-addons → openerp-account-voucher-group |
description: | updated |
description: | updated |
summary: |
- bank reconciliation error with voucher without partner + [Trunk] bank reconciliation error with voucher without partner |
I do not think that this involves any of the account_banking modules so I am removing the Banking Addons project from this bug. Looks like this bug is for openobject-addons. Please reply if you think I am wrong.