[IMP]Base:Default Logo Set and Preview Reports,Upload/Change Logo btn put under Seprator

bzr revid: aag@tinyerp.co.in-20110408064234-b0jawj9ntdrmae8a
This commit is contained in:
aag (OpenERP) 2011-04-08 12:12:34 +05:30
parent e9a06c1b41
commit d3b7007425
2 changed files with 8 additions and 2 deletions

View File

@ -232,13 +232,16 @@
</group>
<notebook colspan="4">
<page string="General Information">
<group colspan="4">
<field name="rml_header1" colspan="4"/>
<field name="rml_footer1" colspan="4"/>
<field name="rml_footer2" colspan="4"/>
<field name="currency_id"/>
<field name="currency_id" colspan="2"/>
</group>
<separator string="" colspan="4"/>
<button name="createReport" string="Preview Reports" type="object" icon="gtk-print"/>
<button name="%(action_res_company_logo)d"
string="Upload your logo" type="action" icon="gtk-ok"/>
string="Upload/Change Logo" type="action" icon="gtk-open"/>
</page>
<page string="Header/Footer" groups="base.group_extended">
<field colspan="4" name="rml_header" nolabel="1"/>

View File

@ -73,6 +73,9 @@ class res_company_logo(osv.osv_memory):
_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: