diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2007-05-08 20:01:54 +0000 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2007-05-08 20:01:54 +0000 |
| commit | 76f4cb03b0174c99ee5dca238a4ffe6ab76f8f8d (patch) | |
| tree | 1d3a347893e17b688b7f596499c12a9d4948094c | |
| parent | 295219bf2a22e56bd9dc8480cb00bbd6236b8e8f (diff) | |
Default value for categories in the module upload wizard
bzr revid: fp@tinyerp.com-b80a20763888ed425a5a12b33fc0c56bb3424964
| -rw-r--r-- | addons/base_module_publish/wizard/base_module_publish.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/base_module_publish/wizard/base_module_publish.py b/addons/base_module_publish/wizard/base_module_publish.py index 8bfad1f0721..1cfaab61815 100644 --- a/addons/base_module_publish/wizard/base_module_publish.py +++ b/addons/base_module_publish/wizard/base_module_publish.py @@ -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 = { |
