From 68c9f1a67309b8c75e895f12567daa224db67c17 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 23 Feb 2017 14:47:20 +0100 Subject: [PATCH] [FIX] models: missing argument --- odoo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/models.py b/odoo/models.py index ea5f49056fa..2090ee93f6a 100644 --- a/odoo/models.py +++ b/odoo/models.py @@ -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._table, row['attname']) + tools.drop_not_null(self._cr, self._table, row['attname']) @api.model_cr_context def _init_column(self, column_name):