bzr revid: stw@openerp.com-20120803122457-emvyki50sxnzke1k
This commit is contained in:
Stephane Wirtel 2012-08-03 14:24:57 +02:00
commit 077be4912e
1 changed files with 6 additions and 0 deletions

View File

@ -4160,6 +4160,12 @@ class BaseModel(object):
self.check_create(cr, user)
if self._log_access:
for f in LOG_ACCESS_COLUMNS:
if vals.pop(f, None) is not None:
_logger.warning(
'Field `%s` is not allowed when creating the model `%s`.',
f, self._name)
vals = self._add_missing_default_values(cr, user, vals, context)
tocreate = {}