From 88a2b980f8ab39b96d37c832ac076d759c538102 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Fri, 19 Aug 2011 03:13:12 +0200 Subject: [IMP] base_setup cleanups bzr revid: al@openerp.com-20110819011312-ekjioj2f1bloom3i --- addons/base_setup/wizard/__init__.py | 25 ----------- addons/base_setup/wizard/res_company_logo.py | 49 ---------------------- addons/base_setup/wizard/res_company_logo_view.xml | 48 --------------------- 3 files changed, 122 deletions(-) delete mode 100644 addons/base_setup/wizard/__init__.py delete mode 100644 addons/base_setup/wizard/res_company_logo.py delete mode 100644 addons/base_setup/wizard/res_company_logo_view.xml (limited to 'addons/base_setup/wizard') diff --git a/addons/base_setup/wizard/__init__.py b/addons/base_setup/wizard/__init__.py deleted file mode 100644 index 3c482efa976..00000000000 --- a/addons/base_setup/wizard/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# 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 . -# -############################################################################## - -import res_company_logo - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - diff --git a/addons/base_setup/wizard/res_company_logo.py b/addons/base_setup/wizard/res_company_logo.py deleted file mode 100644 index 255b0e89408..00000000000 --- a/addons/base_setup/wizard/res_company_logo.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# 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 . -# -############################################################################## - -from osv import fields, osv -import os -import tools -from tools.translate import _ - - -class res_company_logo(osv.osv_memory): - _name = 'res.company.logo' - _inherit = 'res.config' - _columns = { - 'logo' : fields.binary('Logo'), - } - _defaults={ - 'logo':lambda self,cr,uid,c: self.pool.get('res.company').browse(cr, uid, uid,c).logo, - } - - def execute(self, cr, uid, ids, context=None): - if context is None: - context = {} - user_comp = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id - get_val = self.browse(cr, uid, ids)[0] - user_comp.write({'logo': get_val.logo}, context=context) - return {'type': 'ir.actions.act_window_close'} - -res_company_logo() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - diff --git a/addons/base_setup/wizard/res_company_logo_view.xml b/addons/base_setup/wizard/res_company_logo_view.xml deleted file mode 100644 index a21fd261dd8..00000000000 --- a/addons/base_setup/wizard/res_company_logo_view.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - -