@@ -80,6 +80,7 @@
|
||||
<page string="Current Activity">
|
||||
<field name="company_id" widget="selection" readonly="0"
|
||||
context="{'user_id': self, 'user_preference': 1}"/>
|
||||
<field name="view" readonly="0"/>
|
||||
<newline/>
|
||||
<separator colspan="4" string="Preferences"/>
|
||||
</page>
|
||||
@@ -90,7 +91,6 @@
|
||||
<label colspan="3" string="Please note that you will have to logout and relog if you change your password."/>
|
||||
<field name="context_lang" completion="1" readonly="0"/>
|
||||
<field name="context_tz" completion="1" readonly="0"/>
|
||||
<field name="view" readonly="0"/>
|
||||
<newline/>
|
||||
<separator string="Signature" colspan="4"/>
|
||||
<field colspan="4" name="signature" readonly="0" nolabel="1"/>
|
||||
|
||||
+3
-1
@@ -2616,6 +2616,7 @@ class orm(orm_template):
|
||||
fld_def = ((f in self._columns) and self._columns[f]) \
|
||||
or ((f in self._inherit_fields) and self._inherit_fields[f][2]) \
|
||||
or False
|
||||
|
||||
if isinstance(fld_def, fields.property):
|
||||
property_obj = self.pool.get('ir.property')
|
||||
prop_value = property_obj.get(cr, uid, f, self._name, context=context)
|
||||
@@ -2625,7 +2626,8 @@ class orm(orm_template):
|
||||
else:
|
||||
value[f] = prop_value
|
||||
else:
|
||||
value[f] = False
|
||||
if f not in value:
|
||||
value[f] = False
|
||||
|
||||
# get the default values set by the user and override the default
|
||||
# values defined in the object
|
||||
|
||||
Reference in New Issue
Block a user