* 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
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
_inherit = 'res.partner'
_columns = {
'emails': fields.one2many('mailgate.message', 'partner_id',\
- 'Emails', readonly=True),
+ 'Emails', readonly=True, domain=[('history','=',True)]),
}
res_partner()
<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>