Before this commit, it was not possible to have the field message_attachment_count explicitly defined in the form view. It crashed inelegantly if it were the case After this commit, it is possible to have that field in the form view OPW 1998503 closes odoo/odoo#34143 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>