[trunk/7.0]OE chatter's tracking doesn't support m2m or one2many

Bug #1285866 reported by Sandy Carter (http://www.savoirfairelinux.com)
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team
OpenERP Community Backports (Addons)
New
Undecided
Unassigned

Bug Description

I have a model which inherits mail.thread. On this model I have enabled track_visibility='onchange' on many of the fields.
The widget logs all changes done to fields.char, fields.selection in a way that is natural.
When it comes to fields.many2many and fields.one2many, what is logged is a string representation of the list of the foreign object ids.

Steps to reproduce:
* Create a module with an object which inherits 'mail.thread', add a many2many or a one2many relational field.
* Create the view with the fields and the chatter section
* Modify the field
* Save changes

Expected output:
The chatter will log something along the lines of:
Test object:
* first entry.. * second entry
              → * third entry
                * fourth entry

or:
Test object:
* Added:
  * second entry
  * third entry
  * fourth entry
* Removed:
  * first entry

Actual output:
The chatter will log something along the lines of:
Test object: [1] → [2, 3, 4]

Versions:
server: r5248
addons: r9856

description: updated
description: updated
description: updated
Revision history for this message
Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) wrote :

I hacked away at a method to display the lists for many2many
This will work for displaying changes to many2many lists, but introduced a bug in the display of one2many

This is a work in progress.

Revision history for this message
Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) wrote :

Known issue with lp:~savoirfairelinux-openerp/openobject-addons/lp1285866
Will cause an exception in name_get when removing a o2m object

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
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.