From 2aac9904e341e22422a2c6eb4c60c272d08f3349 Mon Sep 17 00:00:00 2001 From: Aristobulo Meneses Date: Fri, 31 Jul 2015 13:50:50 +0200 Subject: [PATCH] Modify pre_init_hook method --- crm_claim_rma/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crm_claim_rma/__init__.py b/crm_claim_rma/__init__.py index 70a517be..5b7f9485 100644 --- a/crm_claim_rma/__init__.py +++ b/crm_claim_rma/__init__.py @@ -30,7 +30,6 @@ from . import stock def fill_claim_number(cr): cr.execute(""" - UPDATE "crm_claim" SET "number"=id::varchar - WHERE ("number" is NULL) - OR ("number" = '/'); + UPDATE crm_claim SET number=id::varchar + WHERE number is NULL OR number = '/'; """)