Odoo Help


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.


how to filter by customer or supplier in journal entries

on 2/27/14, 8:28 AM 1,152 views

Hello how can I filter by customer or suppliers in Accounting/Journal entries, unfortunately I can filter by partner, I'd filter by customers and suppliers I enable debug mode but when I edite tehj search view by adding the code: <filter string="Fournisseurs" icon="terp-go-month" domain="[('supplier','=',1)]" context="{'group_by':'supplier'}"/>

it gives me an error

OpenERP Server Error Client Traceback (most recent call last): File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, *self.params) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/addons/web/controllers/main.py", line 1128, in call_kw return self._call_kw(req, model, method, args, kwargs) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/addons/web/controllers/main.py", line 1120, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/addons/web/session.py", line 42, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/addons/web/session.py", line 103, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last): File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, args, *kwargs) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/addons/audittrail/audittrail.py", line 522, in execute_cr return fct_src(cr, uid, model, method, args, *kw) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/osv/orm.py", line 2660, in read_group query = self._where_calc(cr, uid, domain, context=context) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/osv/orm.py", line 4735, in _where_calc e = expression.expression(cr, user, domain, self, context) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/osv/expression.py", line 642, in __init__ self.parse(cr, uid, context=context) File "/home/odoo/runbot/static/openerp-dev-7-0-31298/server/openerp/osv/expression.py", line 806, in parse raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf))) ValueError: Invalid field 'supplier' in leaf "<osv.extendedleaf: ('supplier',="" '=", 1) on account_move (ctx: )>"</p> </blockquote> <p>Thank you for your help</p> ">

inherit filter of journal entries and add your field custom filter.

Krupesh Laiya
on 2/27/14, 9:00 AM

I tried to inherit from the debug mode I chose edit search view in the field Inherited View I chose res.partner.form.inherit but it gives me an error I ValidateError

Error occurred while validating the field(s) arch: Invalid XML for View Architecture! ----- i do not really know how do that, thank you for help me

on 2/27/14, 10:13 AM

I solved the problem

on 2/27/14, 10:49 AM

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

0 follower(s)


Asked: 2/27/14, 8:28 AM
Seen: 1152 times
Last updated: 3/16/15, 8:10 AM