← Back to team overview

openerp-community team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-1118231-nirav into lp:openobject-addons

 

Nirav Bhadradiya(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-1118231-nirav into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1118231 in OpenERP Addons: "[trunk/7.0][Email]Group by partner gives a traceback."
  https://bugs.launchpad.net/openobject-addons/+bug/1118231

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1118231-nirav/+merge/151189

Hello,

[Email]-Groupby Partner give traceback.because partner id is in many2many relational table field. not exist in mail.mail object. 
so Remove Partner id from search view.and change author_id instead of user_id field.

Thanks

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1118231-nirav/+merge/151189
Your team OpenERP Community is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-1118231-nirav.
=== modified file 'mail/mail_mail_view.xml'
--- mail/mail_mail_view.xml	2012-09-04 09:28:20 +0000
+++ mail/mail_mail_view.xml	2013-03-01 10:45:26 +0000
@@ -103,8 +103,7 @@
                     </group>
                     <group expand="0" string="Group By...">
                         <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
-                        <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
-                        <filter string="User" name="User" icon="terp-personal" context="{'group_by':'user_id'}"/>
+                        <filter string="User" name="User" icon="terp-personal" context="{'group_by':'author_id'}"/>
                         <filter string="Thread" icon="terp-mail-" domain="[]" context="{'group_by':'message_id'}"/>
                         <filter string="Month" help="Creation Month" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
                     </group>


Follow ups