diff --git a/bin/addons/base/ir/ir_model.py b/bin/addons/base/ir/ir_model.py index b5d4fa20875..69729317471 100644 --- a/bin/addons/base/ir/ir_model.py +++ b/bin/addons/base/ir/ir_model.py @@ -40,10 +40,10 @@ class ir_model(osv.osv): _rec_name = 'name' _columns = { 'name': fields.char('Object Name', size=64, translate=True, required=True), - 'model': fields.char('Object Name', size=64, required=True, search=1), + 'model': fields.char('Object Name', size=64, required=True, select=1), 'info': fields.text('Information'), 'field_id': fields.one2many('ir.model.fields', 'model_id', 'Fields', required=True), - 'state': fields.selection([('manual','Custom Object'),('base','Base Object')],'Manualy Created',readonly=1), + 'state': fields.selection([('manual','Custom Object'),('base','Base Object')],'Manualy Created',readonly=True), 'access_ids': fields.one2many('ir.model.access', 'model_id', 'Access'), } _defaults = { @@ -94,18 +94,19 @@ ir_model() class ir_model_grid(osv.osv): _name = 'ir.model.grid' _table = 'ir_model' + _inherit = 'ir.model' _description = "Objects Security Grid" - _rec_name = 'name' - _columns = { - 'name': fields.char('Object', size=64), - 'model': fields.char('Object Name', size=64), - } + #_rec_name = 'name' + #_columns = { + # 'name': fields.char('Object', size=64), + # 'model': fields.char('Object Name', size=64), + #} def create(self, cr, uid, vals, context=None): raise osv.except_osv('Error !', 'You cannot add an entry to this view !') def unlink(self, *args, **argv): - raise osv.except_osv('Error !', 'You cannot add an entry to this view !') + raise osv.except_osv('Error !', 'You cannot delete an entry of this view !') def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'): result = super(osv.osv, self).read(cr, uid, ids, fields, context, load) diff --git a/bin/addons/base/module/module_wizard.xml b/bin/addons/base/module/module_wizard.xml index 2b993f13dd4..7f86447201c 100644 --- a/bin/addons/base/module/module_wizard.xml +++ b/bin/addons/base/module/module_wizard.xml @@ -22,6 +22,12 @@ + + Create RST Technical Guide + tech.guide.rst + + + Export a Translation File wizard.module.lang.export diff --git a/bin/addons/base/module/wizard/__init__.py b/bin/addons/base/module/wizard/__init__.py index 63c49313c66..8c799d1bc61 100644 --- a/bin/addons/base/module/wizard/__init__.py +++ b/bin/addons/base/module/wizard/__init__.py @@ -28,6 +28,7 @@ import wizard_export_lang import wizard_import_lang import wizard_module_import import wizard_update_translations +import wizard_tech_guide_rst # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/bin/addons/base/module/wizard/wizard_tech_guide_rst.py b/bin/addons/base/module/wizard/wizard_tech_guide_rst.py new file mode 100644 index 00000000000..e2a12cf113a --- /dev/null +++ b/bin/addons/base/module/wizard/wizard_tech_guide_rst.py @@ -0,0 +1,241 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved +# $Id$ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +import wizard +import osv +import pooler +import os +import tools + +import zipfile +from StringIO import StringIO +import base64 + +choose_file_form =''' +
+ +