From e81c40c7e7de4684fdfc2e2dfd9546750faa095b Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Thu, 4 Feb 2010 17:46:56 +0530 Subject: [PATCH] [FIX] default_FIELD from context should not overwrite modified FIELD value while creating record lp bug: https://launchpad.net/bugs/516964 fixed bzr revid: jvo@tinyerp.com-20100204121656-pzh1opx6kbrywscg --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index f7246b93678..d1ea04f01d8 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -2140,7 +2140,7 @@ class orm(orm_template): field_value = field_value2 value[field] = field_value for key in context or {}: - if key.startswith('default_'): + if key.startswith('default_') and (key[8:] in fields_list): value[key[8:]] = context[key] return value