[FIX] crm: State changes of all crm object shouldn't be in Email section of partner's history.

* mail_gateway: Open document should only open the related document.

lp bug: https://launchpad.net/bugs/680961 fixed

bzr revid: uco@tinyerp.com-20101125072638-e6gaag8svxvk6hmi
This commit is contained in:
uco (OpenERP) 2010-11-25 12:56:38 +05:30
parent d35dec52c3
commit 15dd9e51fa
3 changed files with 4 additions and 3 deletions

View File

@ -200,7 +200,8 @@ class mailgate_message(osv.osv):
action_data = action_pool.read(cr, uid, action_ids[0], context=context)
action_data.update({
'domain' : "[('id','=',%d)]"%(res_id),
'nodestroy': True
'nodestroy': True,
'context': {}
})
return action_data

View File

@ -26,7 +26,7 @@ class res_partner(osv.osv):
_inherit = 'res.partner'
_columns = {
'emails': fields.one2many('mailgate.message', 'partner_id',\
'Emails', readonly=True),
'Emails', readonly=True, domain=[('history','=',True)]),
}
res_partner()

View File

@ -11,7 +11,7 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<page string="History" position="inside">
<field name="emails" colspan="4" nolabel="1" domain="[('history', '=', True)]"/>
<field name="emails" colspan="4" nolabel="1"/>
</page>
</field>
</record>