odoo/odoo — pull request #4310 by ccomb (2014-12-18 00:38:06+00:00)
Title: Fix 4309 non orphaned attachments

Here is the smallest possible changeset that fixes #4309
res_id=0 is a corner case that seemed not really handled