[IMP] models: better argument

This commit is contained in:
Raphael Collet
2017-02-23 14:48:44 +01:00
parent 68c9f1a673
commit c59d79da3c
+1 -1
View File
@@ -2040,7 +2040,7 @@ class BaseModel(object):
_logger.debug("column %s is in the table %s but not in the corresponding object %s",
row['attname'], self._table, self._name)
if row['attnotnull']:
tools.drop_not_null(self._cr, self._table, row['attname'])
tools.drop_not_null(cr, self._table, row['attname'])
@api.model_cr_context
def _init_column(self, column_name):