[FIX] mail: when creating a new object from incoming mail, don't call default_get...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 8 Jan 2013 14:20:21 +0000 (15:20 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Tue, 8 Jan 2013 14:20:21 +0000 (15:20 +0100)
commit06d08603cc5a09eb7e8eaa064ee572234d49fd30
tree9f518315eb9a77b08be1a8f2e2ac4fdee5698dc9
parentff5b5d6cb1007bca42d7b7073350a771984c7c5c
[FIX] mail: when creating a new object from incoming mail, don't call default_get before the call to super(). The create method from the orm is adding default missing value itself. It is also the cause of a bug on stage selection because custom code in create() is not run when stage_id is given in vals (and it's filled here by default_get() but return a wrong value as context cannot be used from incomming mail).

bzr revid: qdp-launchpad@openerp.com-20130108142021-thtla3868hqvqs0o
addons/mail/mail_thread.py