From 102705dcd261e53e33119394ea83d3865192047e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 20 Jan 2010 15:15:17 +0100 Subject: [PATCH 02/29] [imp] Move interface complexity selection to front of the sequence (id 1) bzr revid: xmo@tinyerp.com-20100120141517-j4bryr49u2189hj5 --- bin/addons/base/base_update.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/addons/base/base_update.xml b/bin/addons/base/base_update.xml index 93c33fd9a9d..d69f4c88dba 100644 --- a/bin/addons/base/base_update.xml +++ b/bin/addons/base/base_update.xml @@ -314,7 +314,7 @@ - 5 + 1 From 37c7d2c0afddb0bb9cbe4ab6edac75e425c29c41 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 21 Jan 2010 14:21:18 +0100 Subject: [PATCH 03/29] [imp] add docstring to explain how default_get works/what it does bzr revid: xmo@tinyerp.com-20100121132118-zvvpi168d8vdzbgb --- bin/osv/orm.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 223c2875f03..f1306be7fc2 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -932,6 +932,17 @@ class orm_template(object): self._invalids.clear() def default_get(self, cr, uid, fields_list, context=None): + """ Set default values for the object's fields. + + Returns a dict of {field_name:default_value} + + Arguments: + `fields_list`: the fields for which the object doesn't have + any value yet, and default values need to be + provided. If fields outside this list are + returned, the user-provided values will be + overwritten. + """ return {} def perm_read(self, cr, user, ids, context=None, details=True): From 2f3040d63eca2a57c486725a90e2d0cccf86933e Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 21 Jan 2010 21:47:00 +0100 Subject: [PATCH 04/29] [fix] line breaks in labels & stuff break the gtk client, remove the nice line breaks bzr revid: xmo@tinyerp.com-20100121204700-8t4uufgay05452fj --- bin/addons/base/base_update.xml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/bin/addons/base/base_update.xml b/bin/addons/base/base_update.xml index d69f4c88dba..ec980f6da15 100644 --- a/bin/addons/base/base_update.xml +++ b/bin/addons/base/base_update.xml @@ -226,9 +226,7 @@ -