diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2008-06-17 20:17:23 +0000 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2008-06-17 20:17:23 +0000 |
| commit | 8d16581e0f64c4f40e15495c0db3edea9d765034 (patch) | |
| tree | 3b5a756ff2e7aa3f9886601a07c2a8160ef0d51a /bin/addons/base/ir/workflow/workflow.py | |
| parent | d89c86bd9d457f7a7bdb14b6c555eca804da7097 (diff) | |
Improvements inmenus
Translations by modules
removed print statement
bzr revid: fp@tinyerp.com-eddee689d274afc56e6b7703a7cd22b9792f2c7b
Diffstat (limited to 'bin/addons/base/ir/workflow/workflow.py')
| -rw-r--r-- | bin/addons/base/ir/workflow/workflow.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/addons/base/ir/workflow/workflow.py b/bin/addons/base/ir/workflow/workflow.py index 95db4c8c9e4..8da77f7d24a 100644 --- a/bin/addons/base/ir/workflow/workflow.py +++ b/bin/addons/base/ir/workflow/workflow.py @@ -147,8 +147,8 @@ class wkf_instance(osv.osv): 'res_type': fields.char('Resource Model', size=64), 'state': fields.char('State', size=32), } - def _auto_init(self, cr): - super(wkf_instance, self)._auto_init(cr) + def _auto_init(self, cr, context={}): + super(wkf_instance, self)._auto_init(cr, context) cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = \'wkf_instance_res_id_res_type_state_index\'') if not cr.fetchone(): cr.execute('CREATE INDEX wkf_instance_res_id_res_type_state_index ON wkf_instance (res_id, res_type, state)') @@ -178,8 +178,8 @@ class wkf_triggers(osv.osv): 'instance_id': fields.many2one('workflow.instance', 'Destination Instance', ondelete="cascade"), 'workitem_id': fields.many2one('workflow.workitem', 'Workitem', required=True, ondelete="cascade"), } - def _auto_init(self, cr): - super(wkf_triggers, self)._auto_init(cr) + def _auto_init(self, cr, context={}): + super(wkf_triggers, self)._auto_init(cr, context) cr.execute('SELECT indexname FROM pg_indexes WHERE indexname = \'wkf_triggers_res_id_model_index\'') if not cr.fetchone(): cr.execute('CREATE INDEX wkf_triggers_res_id_model_index ON wkf_triggers (res_id, model)') |
