Default value for categories in the module upload wizard

bzr revid: fp@tinyerp.com-b80a20763888ed425a5a12b33fc0c56bb3424964
This commit is contained in:
Fabien Pinckaers 2007-05-08 20:01:54 +00:00
parent 295219bf2a
commit 76f4cb03b0
1 changed files with 4 additions and 1 deletions

View File

@ -135,7 +135,10 @@ def _get_edit(self, cr, uid, datas, *args):
email = self.pool.get('res.users').browse(cr, uid, uid).address.email or ''
except:
email =''
return {'operation': ((content[0]=='0') and '0') or '1', 'email':email}
result = {'operation': ((content[0]=='0') and '0') or '1', 'email':email}
if (content[0]<>'0'):
result['category'] = content.split('\n')[1]
return result
upload_info_fields = {