Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

AttributeError: 'res.partner' object has no attribute '_find_accounting_partner' Cannot register payments anymore

By
Peter Zijlstra
on 7/17/14, 6:01 AM 2,212 views

After the problem with the keyerror is solved (removed the module accounting analyse) and I thought everything works fine again.. now I get another error.. getting frustrated .. and only able to answer one time here is not improving the situation as well.

What happens:

When I try to register a payment I get the error:

Client Traceback (most recent call last): File "/var/packages/OpenERP7.x/target/openerp/addons/web/http.py", line 195, in dispatch response["result"] = method(self, **self.params) File "/var/packages/OpenERP7.x/target/openerp/addons/web/controllers/main.py", line 1083, in call_button action = self._call_kw(req, model, method, args, {}) File "/var/packages/OpenERP7.x/target/openerp/addons/web/controllers/main.py", line 1071, in _call_kw return getattr(req.session.model(model), method)(*args, **kwargs) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/local/lib/python2.7/site-packages/openerp/netsvc.py", line 295, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/local/lib/python2.7/site-packages/openerp/service/web_services.py", line 614, in dispatch res = fn(db, uid, *params) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 198, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/var/packages/OpenERP7.x/target/openerp/addons/account_voucher/invoice.py", line 45, in invoice_pay_customer 'default_partner_id': self.pool.get('res.partner')._find_accounting_partner(inv.partner_id).id, AttributeError: 'res.partner' object has no attribute '_find_accounting_partner'

Anybody who knows how to solve this issue? Please let me know.. Your assisteance/support will be highly appreciated..

Peter

 

Update 20-07-2014: Please assist.. anyone? I cannot register payments anymore..

 

1
Michael St-Georges
On 7/20/14, 10:38 PM

It looks like you are missing a dependency for the account_voucher module. I'd suggest re-installing this module and any dependencies.

0

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 7/21/14, 12:53 AM

HI,

Check your invoice.py file is there methoda named "_find_accounting_partner" and also check point_of_sale.py '_find_accounting_partner'

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/17/14, 6:01 AM
Seen: 2212 times
Last updated: 3/16/15, 8:10 AM