[TRUNK]: internal kanban view not working in many2many field. like one2many on form view

Bug #997477 reported by Ajay Patel (OpenERP)
6
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

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

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.
==============================================================================
Client Traceback (most recent call last):
  File "/home/amb/rdtolls/client-web/trunk/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/amb/rdtolls/client-web/trunk/addons/web/controllers/main.py", line 1031, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/home/amb/rdtolls/client-web/trunk/addons/web/controllers/main.py", line 993, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/home/amb/rdtolls/client-web/trunk/addons/web/common/openerplib/main.py", line 250, in proxy
    args, kw)
  File "/home/amb/rdtolls/client-web/trunk/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/amb/rdtolls/client-web/trunk/addons/web/common/http.py", line 611, in send
    raise fault
------------------------------------------------------------------------------------------------------------------------
Server Traceback (most recent call last):
  File "/home/amb/rdtolls/client-web/trunk/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/amb/rdtolls/server/trunk/openerp/netsvc.py", line 362, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/amb/rdtolls/server/trunk/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/home/amb/rdtolls/server/trunk/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/amb/rdtolls/server/trunk/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/amb/rdtolls/server/trunk/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/amb/rdtolls/server/trunk/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/amb/rdtolls/server/trunk/openerp/osv/orm.py", line 2539, in read_group
    assert groupby_def and groupby_def._classic_write, "Fields in 'groupby' must be regular database-persisted fields (no function or related fields), or function fields with store=True"
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!

affects: openerp-web → openobject-server
Changed in openobject-server:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
Revision history for this message
Jigar A. (ifixthat) wrote :

Hello
Amit Bhavsar: I understand your concern, but OpenERP Framework does not allows the groupby filter facility on fields with attribute _classic_write = False as they are not native table fields so groupby clause not possible so message itself is self explanatory(but yes i do agree their is chance of improving message and will be done in future).
Amit Patel: I Understand Issue, but kanban view managed web client and so many2many internal view type kanban has also to be managed by web, same like one2many(e.g. in customers form view, contacts is kanban for Company ).
Let me know If I am missing something, I am shifting the bug to web project.
Thank You.

affects: openobject-server → openerp-web
Changed in openerp-web:
assignee: OpenERP's Framework R&D (openerp-dev-framework) → nobody
summary: - [TRUNK]:kanban view not working in many2many field. like one2many
+ [TRUNK]: internal kanban view not working in many2many field. like
+ one2many on form view
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

done in trunk with a new widget (check on projects)

Changed in openerp-web:
importance: Low → Wishlist
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.