[IMP]:config wizard templates

bzr revid: nch@tinyerp.com-20100511093858-f6mxmosml69axxzp
This commit is contained in:
nch@tinyerp.com
2010-05-11 15:08:58 +05:30
parent f551530b24
commit a9c0b3f78e
3 changed files with 9 additions and 17 deletions
+3 -2
View File
@@ -291,10 +291,11 @@
</xpath>
<xpath expr='//separator[@string="vsep"]' position='attributes'>
<attribute name='string'></attribute>
<attribute name='rowspan'>14</attribute>
</xpath>
<group string="res_config_contents" position="replace">
<group colspan="5">
<field colspan="5" name="view" nolabel="1"/>
<group colspan="4">
<field colspan="4" name="view" nolabel="1"/>
</group>
</group>
<xpath expr='//button[@name="action_skip"]' position='replace'/>
+1 -10
View File
@@ -50,16 +50,7 @@ class res_config_configurable(osv.osv_memory):
if total:
return round(open*100./total)
return 100.
# def default_get(self, cr, uid, fields_list, context=None):
# ''' Set Config Logo...
# '''
# defaults = super(res_config_configurable, self).default_get(
# cr, uid, fields_list, context=context)
# file_no = str(random.randint(1,3))
# path = os.path.join('base','res','config_pixmaps/%s.png'%file_no)
# file_data = tools.file_open(path,'rb').read()
# defaults.update({'config_logo':base64.encodestring(file_data)})
# return defaults
def _get_image(self, cr, uid, context=None):
file_no = str(random.randint(1,3))
path = os.path.join('base','res','config_pixmaps/%s.png'%file_no)
+5 -5
View File
@@ -7,12 +7,12 @@
<field name="arch" type="xml">
<form>
<group colspan="4" col="8">
<group colspan="4" width="200" height="250">
<group colspan="3" width="200" height="250">
<field name="config_logo" widget="image" width="150" height="100" nolabel="1" colspan="1"/>
<newline/>
<label align="0.0" string="description" width="200" colspan="2"/>
<separator string="vsep" position="vertical" colspan="1" rowspan="12"/>
</group>
<separator string="vsep" position="vertical" colspan="1" rowspan="12"/>
<group colspan="4">
<separator string="title" colspan="4"/>
<group string="res_config_contents"/>
@@ -61,12 +61,12 @@
<field name="arch" type="xml">
<form>
<group colspan="4" col="8">
<group colspan="4" width="200" height="250">
<group colspan="3" width="200" height="300">
<field name="config_logo" widget="image" width="150" height="100" nolabel="1" colspan="1"/>
<newline/>
<label align="0.0" string="description" width="200" colspan="2"/>
<separator string="vsep" position="vertical" colspan="1" rowspan="12"/>
</group>
<separator string="vsep" position="vertical" colspan="1" rowspan="12"/>
<group colspan="4">
<separator string="title" colspan="4"/>
<group colspan="8"/>
@@ -74,7 +74,7 @@
</group>
<group colspan="8" col="8">
<separator string="" colspan="8"/>
<group string="progress" colspan="4" width="220">
<group colspan="4" width="220">
<field name="progress" widget="progressbar" nolabel="1" colspan="2"/>
</group>
<button name="action_skip" icon="gtk-goto-last" special="cancel"