summaryrefslogtreecommitdiff
path: root/addons/base_module_quality/wizard/module_quality_check.py
diff options
context:
space:
mode:
authorPurnendu Singh (OpenERP) <psi@tinyerp.com>2012-06-11 18:17:02 +0530
committerPurnendu Singh (OpenERP) <psi@tinyerp.com>2012-06-11 18:17:02 +0530
commit3daedd56c24e9a86d74dedb2b3b04f4d09e3bd32 (patch)
tree88c4f24b3a32cb9afed3c25c32c43fb290e64ba8 /addons/base_module_quality/wizard/module_quality_check.py
parent45af06ba68f6329281a5dadb4ed245d0157d8e52 (diff)
parentb2f173d4b2d3cb804111b801868d494eec19756c (diff)
[MERGE] merge with main addons
bzr revid: psi@tinyerp.com-20120611124702-f45l1i7kqzjs7sua
Diffstat (limited to 'addons/base_module_quality/wizard/module_quality_check.py')
-rw-r--r--addons/base_module_quality/wizard/module_quality_check.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/addons/base_module_quality/wizard/module_quality_check.py b/addons/base_module_quality/wizard/module_quality_check.py
deleted file mode 100644
index 8b6f1157a29..00000000000
--- a/addons/base_module_quality/wizard/module_quality_check.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-##############################################################################
-
-from tools.translate import _
-from osv import osv, fields
-
-class quality_check(osv.osv_memory):
- _name = "quality.check"
- _description = "Module Quality Check"
-
- def _create_quality_check(self, cr, uid, ids, context=None):
- obj_quality = self.pool.get('module.quality.check')
- objs_ids = []
- module_id = context.get('active_id', False)
- module_data = self.pool.get('ir.module.module').browse(cr, uid, module_id, context=context)
- data = obj_quality.check_quality(cr, uid, module_data.name, module_data.state)
- obj = obj_quality.create(cr, uid, data, context=context)
- objs_ids.append(obj)
- return objs_ids
-
- def open_quality_check(self, cr, uid, ids, context=None):
- obj_ids = self._create_quality_check(cr, uid, ids, context=context)
- return {
- 'domain': "[('id','in', ["+','.join(map(str,obj_ids))+"])]",
- 'name': _('Quality Check'),
- 'view_type': 'form',
- 'view_mode': 'tree,form',
- 'res_model': 'module.quality.check',
- 'type': 'ir.actions.act_window'
- }
-
-quality_check()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file