Fix graph for '/'

Add board for sale manager

bzr revid: ced-ae05d473d4bc678ef84d671d6e9efb52bba406ae
This commit is contained in:
ced 2006-12-08 15:36:28 +00:00
parent a33826ac52
commit 232e2de0bf
3 changed files with 49 additions and 7 deletions

View File

@ -39,3 +39,4 @@ import ir_values
import ir_translation
import ir_exports
import workflow
import ir_board

View File

@ -0,0 +1,40 @@
##############################################################################
#
# Copyright (c) 2004-2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
# Fabien Pinckaers <fp@tiny.Be>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# garantees and support are strongly adviced to contract a Free Software
# Service Company
#
# 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 2
# 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, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from osv import fields,osv
class board(osv.osv):
_name = 'ir.board'
def create(self, cr, user, vals, context={}):
return False
def copy(self, cr, uid, id, default=None, context={}):
return False
_columns = {
'name': fields.char('Board', size=64),
}
board()

View File

@ -50,13 +50,14 @@ def _eval_xml(self,node, pool, cr, uid, idref):
idref['ref'] = lambda x: self.id_get(cr, False, x)
return eval(a_eval, idref)
if t == 'xml':
#def _process(s):
# groups = re.search
# %(.*?)d
# for group
# replace(group(0), self.id_get(cr, False, group(0))
#txt = '<?xml version="1.0"?>\n'+_process("".join([i.toxml().encode("utf8") for i in node.childNodes]))
txt = '<?xml version="1.0"?>\n'+"".join([i.toxml().encode("utf8") for i in node.childNodes]) % idref
def _process(s, idref):
m = re.findall('[^%]%\((.*?)\)[ds]', s)
for id in m:
if not id in idref:
idref[id]=self.id_get(cr, False, id)
return s % idref
txt = '<?xml version="1.0"?>\n'+_process("".join([i.toxml().encode("utf8") for i in node.childNodes]), idref)
# txt = '<?xml version="1.0"?>\n'+"".join([i.toxml().encode("utf8") for i in node.childNodes]) % idref
return txt
if t in ('char', 'int', 'float'):