[IMP] mail.mail: simplify: no default for `headers` field
authorOlivier Dony <odo@openerp.com>
Mon, 11 Aug 2014 14:02:08 +0000 (16:02 +0200)
committerOlivier Dony <odo@openerp.com>
Mon, 11 Aug 2014 14:32:36 +0000 (16:32 +0200)
commit34cc06440061c31210617eddd0bbf39f004058de
treeb4f4da4d6a0ecea9e57f126dbdd477b2298400b1
parentf985c0bc1110b3e86b4f348d78fa5b9d66bddb1a
[IMP] mail.mail: simplify: no default for `headers` field

This avoids storing useless "{}" values
in the database when there are no headers,
and avoids having to update all existing
entries when this column is added.
Just requires simple tests before evaluating
the headers contents.
addons/mail/mail_group.py
addons/mail/mail_mail.py
addons/website_mail_group/models/mail_group.py