[FIX] account: account balance report (ref SBH)
bzr revid: mra@mra-laptop-20100628072951-idxnyfjlmz8s71q2
This commit is contained in:
@@ -61,7 +61,7 @@ class account_balance_report(osv.osv_memory):
|
||||
def _print_report(self, cr, uid, ids, data, query_line, context=None):
|
||||
|
||||
if data['model']=='ir.ui.menu':
|
||||
data['ids']=data['form']['chart_account_id']
|
||||
data['ids'] = [data['form']['chart_account_id']]
|
||||
data['form'].update(self.read(cr, uid, ids, ['display_account', 'company_id',])[0])
|
||||
data['form']['query_get'] = query_line
|
||||
return { 'type': 'ir.actions.report.xml', 'report_name': 'account.account.balance', 'datas': data, 'nodestroy':True, }
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Print Account Balance" >
|
||||
<!-- <group width="600" height="350">-->
|
||||
<group width="600" height="250">
|
||||
<group colspan="4" col="4">
|
||||
<field name="chart_account_id" colspan="2" widget='selection'/>
|
||||
<field name="fiscalyear_id"/>
|
||||
@@ -16,21 +16,21 @@
|
||||
<field name="company_id"/>
|
||||
<field name="display_account"/>
|
||||
</group>
|
||||
<notebook tabpos="up" colspan="4">
|
||||
<page string="Periods" attrs="{'invisible':[('filter','!=','filter_period')]}">
|
||||
<field name="period_from"/>
|
||||
<field name="period_to"/>
|
||||
</page>
|
||||
<page string="Date" attrs="{'invisible':[('filter','!=','filter_date')]}">
|
||||
<field name="date_from"/>
|
||||
<field name="date_to"/>
|
||||
</page>
|
||||
</notebook>
|
||||
<group attrs="{'invisible':[('filter','!=','filter_period')]}">
|
||||
<separator string="Periods" colspan="4"/>
|
||||
<field name="period_from"/>
|
||||
<field name="period_to"/>
|
||||
</group>
|
||||
<group colspan="4" attrs="{'invisible':[('filter','!=','filter_date')]}">
|
||||
<separator string="Date" colspan="4"/>
|
||||
<field name="date_from"/>
|
||||
<field name="date_to"/>
|
||||
</group>
|
||||
<group colspan="4" col="4" >
|
||||
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
||||
<button icon="gtk-print" name="check_report" string="Print" type="object"/>
|
||||
</group>
|
||||
<!-- </group>-->
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user