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

How to add group by sale_name in manufacturing orders?

By
Eric Demers
on 2/4/14, 3:17 PM 1,831 views

I have successfully added sale_name in the edit treeview

 <field name="sale_name"/>

but when I try to add sale_name in the edit searchviewwith:

<filter string="Sale Name" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'sale_name'}"/>

I get this error:

Client Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server\openerp\addons\web\http.py", line 204, in dispatch File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server\openerp\addons\web\controllers\main.py", line 1125, in call_kw File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server\openerp\addons\web\controllers\main.py", line 1117, in _call_kw File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server\openerp\addons\web\session.py", line 42, in proxy File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server\openerp\addons\web\session.py", line 30, in proxy_method File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server\openerp\addons\web\session.py", line 103, in send Server Traceback (most recent call last): File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server\openerp\addons\web\session.py", line 89, in send File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server.\openerp\netsvc.py", line 292, in dispatch_rpc File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server.\openerp\service\web_services.py", line 626, in dispatch File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server.\openerp\osv\osv.py", line 190, in execute_kw File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server.\openerp\osv\osv.py", line 132, in wrapper File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server.\openerp\osv\osv.py", line 199, in execute File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server.\openerp\osv\osv.py", line 187, in execute_cr File "C:\Program Files (x86)\OpenERP 7.0-20140122-002452\Server\server.\openerp\osv\orm.py", line 2647, in read_group AssertionError: Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True

0

Hiral Patel (hip)

--Hiral Patel (hip)--
Tiny ERP Pvt Ltd
http://www.odoo.com
913
| 2 1 5
India
--Hiral Patel (hip)--


Hiral Patel (hip)
On 2/5/14, 5:26 AM

Hello,

Find the solution at : https://bugs.launchpad.net/openerp-web/+bug/1101840

Thanks.

Hi.I have applied the patch and does not work for me. Is my coding correct? thanks

Eric Demers
on 2/5/14, 4:13 PM

any help would be great, still haven't found a solution. Thanks.

Eric Demers
on 2/12/14, 9:09 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

1 follower(s)

Stats

Asked: 2/4/14, 3:17 PM
Seen: 1831 times
Last updated: 3/16/15, 8:10 AM