diff options
| author | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2012-06-11 18:17:02 +0530 |
|---|---|---|
| committer | Purnendu Singh (OpenERP) <psi@tinyerp.com> | 2012-06-11 18:17:02 +0530 |
| commit | 3daedd56c24e9a86d74dedb2b3b04f4d09e3bd32 (patch) | |
| tree | 88c4f24b3a32cb9afed3c25c32c43fb290e64ba8 /addons/base_module_quality/wizard | |
| parent | 45af06ba68f6329281a5dadb4ed245d0157d8e52 (diff) | |
| parent | b2f173d4b2d3cb804111b801868d494eec19756c (diff) | |
[MERGE] merge with main addons
bzr revid: psi@tinyerp.com-20120611124702-f45l1i7kqzjs7sua
Diffstat (limited to 'addons/base_module_quality/wizard')
5 files changed, 0 insertions, 191 deletions
diff --git a/addons/base_module_quality/wizard/__init__.py b/addons/base_module_quality/wizard/__init__.py deleted file mode 100644 index 8f496a6ab41..00000000000 --- a/addons/base_module_quality/wizard/__init__.py +++ /dev/null @@ -1,25 +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/>. -# -############################################################################## - -import module_quality_check -import quality_save_report - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: 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 diff --git a/addons/base_module_quality/wizard/module_quality_check_view.xml b/addons/base_module_quality/wizard/module_quality_check_view.xml deleted file mode 100644 index d5ce83d9612..00000000000 --- a/addons/base_module_quality/wizard/module_quality_check_view.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<openerp> - <data> - - <record id="view_base_module_quality" model="ir.ui.view"> - <field name="name">view_base_module_quality_form</field> - <field name="model">quality.check</field> - <field name="type">form</field> - <field name="arch" type="xml"> - <form string="Quality Check"> - <group colspan="4"> - <separator string = "This wizard will check module(s) quality" colspan="4"/> - <newline/> - <button icon="gtk-cancel" string="Cancel" special="cancel"/> - <button name="open_quality_check" icon="terp-camera_test" string="Check" type="object"/> - </group> - </form> - </field> - </record> - - <act_window - name="Quality Check" - id="act_base_module_quality" - res_model="quality.check" - src_model="ir.module.module" - view_mode="form" - target="new" - key2="client_action_multi" - /> - </data> -</openerp> diff --git a/addons/base_module_quality/wizard/quality_save_report.py b/addons/base_module_quality/wizard/quality_save_report.py deleted file mode 100644 index e4286e92237..00000000000 --- a/addons/base_module_quality/wizard/quality_save_report.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/>. -# -############################################################################## - -import base64 -import cStringIO - -from osv import osv -from tools.translate import _ -from osv import osv, fields - -class quality_save_report(osv.osv_memory): - - _name = "save.report" - _description = "Save Report of Quality" - - def default_get(self, cr, uid, fields, context=None): - res = super(quality_save_report, self).default_get(cr, uid, fields, context=context) - active_ids = context.get('active_ids') - data = self.pool.get('module.quality.detail').browse(cr, uid, active_ids, context=context)[0] - if not data.detail: - raise osv.except_osv(_('Warning'), _('No report to save!')) - buf = cStringIO.StringIO(data.detail) - out = base64.encodestring(buf.getvalue()) - buf.close() - return {'module_file': out, 'name': data.name + '.html'} - - _columns = { - 'name': fields.char('File Name', required=True, size=32, help="Save report as .html format"), - 'module_file': fields.binary('Save report', required=True), - } - -quality_save_report() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file diff --git a/addons/base_module_quality/wizard/quality_save_report_view.xml b/addons/base_module_quality/wizard/quality_save_report_view.xml deleted file mode 100644 index 89593b68742..00000000000 --- a/addons/base_module_quality/wizard/quality_save_report_view.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<openerp> - <data> - - <record id="view_quality_save_report" model="ir.ui.view"> - <field name="name">view_quality_save_report</field> - <field name="model">save.report</field> - <field name="type">form</field> - <field name="arch" type="xml"> - <form string="Standard Entries"> - <field name="name"/> - <newline/> - <field name="module_file"/> - <separator colspan="4"/> - <label string=" " colspan="2"/> - <button special="cancel" string="Close" icon="gtk-close"/> - </form> - </field> - </record> - - <record model="ir.actions.act_window" id="action_view_quality_save_report"> - <field name="name">Standard Entries</field> - <field name="res_model">save.report</field> - <field name="view_type">form</field> - <field name="view_mode">tree,form</field> - <field name="target">new</field> - <field name="view_id" ref="view_quality_save_report"/> - </record> - - </data> -</openerp> |
