summaryrefslogtreecommitdiff
path: root/addons/base_module_record
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2012-02-09 10:12:03 +0100
committerRaphael Collet <rco@openerp.com>2012-02-09 10:12:03 +0100
commite188087e9323c24166b5e4e863afc0f7cee8027b (patch)
tree4aba1bf6742139eb7eda91ba030cfc9cf0248171 /addons/base_module_record
parentd672ded28611460ce82b7a548cd40994cec45412 (diff)
[IMP] base_module_doc_rst, base_module_record, base_report_creator: code spacing cleanup
bzr revid: rco@openerp.com-20120209091203-ni85eanpc005t2c0
Diffstat (limited to 'addons/base_module_record')
-rw-r--r--addons/base_module_record/__openerp__.py6
-rw-r--r--addons/base_module_record/wizard/base_module_record_objects.py19
2 files changed, 14 insertions, 11 deletions
diff --git a/addons/base_module_record/__openerp__.py b/addons/base_module_record/__openerp__.py
index 65b6a3f5ebd..bfb3c497218 100644
--- a/addons/base_module_record/__openerp__.py
+++ b/addons/base_module_record/__openerp__.py
@@ -47,7 +47,11 @@ Select datetime criteria of recording and objects to be recorded and Record modu
'website': 'http://www.openerp.com',
'depends': ['base'],
'init_xml': [],
- 'update_xml': ['security/ir.model.access.csv', 'wizard/base_module_record_object_view.xml', 'wizard/base_module_record_data_view.xml',],
+ 'update_xml': [
+ 'security/ir.model.access.csv',
+ 'wizard/base_module_record_object_view.xml',
+ 'wizard/base_module_record_data_view.xml',
+ ],
'demo_xml': [],
'installable': True,
'certificate': '0083134865813',
diff --git a/addons/base_module_record/wizard/base_module_record_objects.py b/addons/base_module_record/wizard/base_module_record_objects.py
index 27ff4902727..e822c68c8fe 100644
--- a/addons/base_module_record/wizard/base_module_record_objects.py
+++ b/addons/base_module_record/wizard/base_module_record_objects.py
@@ -86,9 +86,7 @@ class base_module_record(osv.osv_memory):
resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
return {
'name': _('Message'),
- 'context': {
- 'default_yaml_file': tools.ustr(res['yaml_file']),
- },
+ 'context': {'default_yaml_file': tools.ustr(res['yaml_file'])},
'view_type': 'form',
'view_mode': 'form',
'res_model': 'base.module.record.objects',
@@ -109,9 +107,9 @@ class base_module_record(osv.osv_memory):
'type': 'ir.actions.act_window',
'target': 'new',
}
+
model_data_ids = mod_obj.search(cr, uid, [('model', '=', 'ir.ui.view'), ('name', '=', 'module_recording_message_view')], context=context)
resource_id = mod_obj.read(cr, uid, model_data_ids, fields=['res_id'], context=context)[0]['res_id']
-
return {
'name': _('Message'),
'context': context,
@@ -122,6 +120,7 @@ class base_module_record(osv.osv_memory):
'type': 'ir.actions.act_window',
'target': 'new',
}
+
base_module_record()
class base_module_record_objects(osv.osv_memory):
@@ -137,10 +136,10 @@ class base_module_record_objects(osv.osv_memory):
return {
'name': _('Message'),
- 'context': {
- 'default_module_filename': tools.ustr(res['module_filename']),
- 'default_module_file': tools.ustr(res['module_file']),
- },
+ 'context': {
+ 'default_module_filename': tools.ustr(res['module_filename']),
+ 'default_module_file': tools.ustr(res['module_file']),
+ },
'view_type': 'form',
'view_mode': 'form',
'res_model': 'base.module.record.objects',
@@ -166,9 +165,9 @@ class base_module_record_objects(osv.osv_memory):
'author': 'OpenERP SA',
'category': 'Vertical Modules/Parametrization',
'website': 'http://www.openerp.com',
- 'data_kind': 'update'
+ 'data_kind': 'update',
}
base_module_record_objects()
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: