[TRUNK]: internal kanban view not working in many2many field. like one2many on form view
Bug #997477 reported by
Ajay Patel (OpenERP)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Wishlist
|
OpenERP R&D Web Team |
Bug Description
Hello,
due to many2many return list of ids , kanban view is not working with many2many field.
Thanks,
Amit
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
To post a comment you must log in.
Hello,
I have tested this Issue with combination of varieties code....
Let's see one by one,
#test-1: I have tested the kanban view with "one2many" and "many2one" field. And it's working fine.
for ex : In Project >> Task (kanban view).
#test-2: But when I have tested with "many2many". Then face the following Traceback. because In many2many filed return no ids. ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= = amb/rdtolls/ client- web/trunk/ addons/ web/common/ http.py" , line 180, in dispatch "result" ] = method(controller, self, **self.params) amb/rdtolls/ client- web/trunk/ addons/ web/controllers /main.py" , line 1031, in call_kw amb/rdtolls/ client- web/trunk/ addons/ web/controllers /main.py" , line 993, in _call_kw req.session. model(model) , method)(*args, **kwargs) amb/rdtolls/ client- web/trunk/ addons/ web/common/ openerplib/ main.py" , line 250, in proxy amb/rdtolls/ client- web/trunk/ addons/ web/common/ openerplib/ main.py" , line 117, in proxy send(self. service_ name, method, *args) amb/rdtolls/ client- web/trunk/ addons/ web/common/ http.py" , line 611, in send ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- - amb/rdtolls/ client- web/trunk/ addons/ web/common/ http.py" , line 592, in send netsvc. dispatch_ rpc(service_ name, method, args) amb/rdtolls/ server/ trunk/openerp/ netsvc. py", line 362, in dispatch_rpc getService( service_ name).dispatch( method, params) amb/rdtolls/ server/ trunk/openerp/ service/ web_services. py", line 586, in dispatch amb/rdtolls/ server/ trunk/openerp/ osv/osv. py", line 167, in execute_kw amb/rdtolls/ server/ trunk/openerp/ osv/osv. py", line 121, in wrapper amb/rdtolls/ server/ trunk/openerp/ osv/osv. py", line 176, in execute amb/rdtolls/ server/ trunk/openerp/ osv/osv. py", line 164, in execute_cr amb/rdtolls/ server/ trunk/openerp/ osv/orm. py", line 2539, in read_group def._classic_ write, "Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True" ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =======
=======
Client Traceback (most recent call last):
File "/home/
response[
File "/home/
return self._call_kw(req, model, method, args, kwargs)
File "/home/
return getattr(
File "/home/
args, kw)
File "/home/
result = self.connector.
File "/home/
raise fault
-------
Server Traceback (most recent call last):
File "/home/
result = openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
assert groupby_def and groupby_
AssertionError: Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True
=======
So, we should improve this things. That's why I am confirm this issue with low Important.
Thanks for the reporting!