You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
157 lines
7.3 KiB
157 lines
7.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="account_financial_report_view" model="ir.ui.view">
|
|
<field name="name">Account Financial Report (Template)</field>
|
|
<field name="model">afr</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Account Financial Report (Templates)">
|
|
<group colspan="4">
|
|
<field name="name" colspan="4"/>
|
|
</group>
|
|
<group colspan="4">
|
|
<group colspan="2">
|
|
<separator string="Company Info" colspan="4"/>
|
|
<field name="company_id" on_change='onchange_company_id(company_id)' colspan="4"/>
|
|
<field name="currency_id"
|
|
domain="[('company_id','=',company_id)]"
|
|
attrs="{'readonly':[('analytic_ledger','=',True)]}"
|
|
colspan="4"/>
|
|
</group>
|
|
<group colspan="2">
|
|
<separator string="Report Info" colspan="4"/>
|
|
<field
|
|
name="inf_type"
|
|
colspan="4"
|
|
on_change='onchange_inf_type(inf_type)'
|
|
/>
|
|
<field name="columns" on_change='onchange_columns(columns,fiscalyear_id,period_ids)' colspan="4"/>
|
|
<field name="analytic_ledger" colspan="4"
|
|
attrs="{'readonly':['|',('columns','!=','four'),('inf_type','!=','BS')],}"
|
|
on_change='onchange_analytic_ledger(company_id,analytic_ledger)'
|
|
/>
|
|
</group>
|
|
</group>
|
|
<group colspan='4'>
|
|
<group colspan="2">
|
|
<separator string="Accounts Info" colspan="4"/>
|
|
<field name="display_account" required="True" colspan="4"/>
|
|
<field name="display_account_level" required="True" colspan="4"/>
|
|
</group>
|
|
<group colspan="2">
|
|
<separator string="FiscalYear Info" colspan="4"/>
|
|
<field name="fiscalyear_id" on_change='onchange_columns(columns,fiscalyear_id,period_ids)' domain="[('company_id','=',company_id)]"/>
|
|
<newline/>
|
|
</group>
|
|
</group>
|
|
<group colspan='4'>
|
|
<group colspan="1">
|
|
<separator string="Accounts to Include" colspan="4"/>
|
|
<field name="account_ids" nolabel="1" colspan="4" domain="[('company_id','=',company_id)]">
|
|
<tree>
|
|
<field name='code'/>
|
|
<field name='name'/>
|
|
<field name='type'/>
|
|
<field name='level'/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
<group colspan="1">
|
|
<separator string="Periods to Include" colspan="4"/>
|
|
<field name="period_ids"
|
|
colspan="4" nolabel="1"
|
|
domain="[('fiscalyear_id','=',fiscalyear_id),('special','=',False),('company_id','=',company_id)]"
|
|
attrs="{'readonly':[('columns','in',('qtr','thirteen'))],}"
|
|
>
|
|
|
|
<tree>
|
|
<field name='code'/>
|
|
<field name='name'/>
|
|
<field name='state'/>
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</group>
|
|
<group colspan='4'>
|
|
<separator string="Account's Sign Conventions" colspan="4"/>
|
|
<label string="Please check the [ Account's Sign on Reports ] Section in the Company"/>
|
|
</group>
|
|
|
|
<group colspan='4' col='4'>
|
|
<group colspan="2">
|
|
<separator string="Total" colspan="4"/>
|
|
<field name="tot_check" colspan="4"/>
|
|
<field name="lab_str" colspan="4" attrs="{'required':[('tot_check','=',True)], 'readonly':[('tot_check','=',False)],}" />
|
|
</group>
|
|
<group colspan="2">
|
|
<separator string="" colspan="4"/>
|
|
<!--
|
|
<button
|
|
name="print_report"
|
|
string="Print"
|
|
type="object"
|
|
icon='gtk-print'/>
|
|
<button
|
|
type='special'
|
|
special='cancel'
|
|
string='_Cancel'
|
|
icon='gtk-cancel'
|
|
/>
|
|
-->
|
|
</group>
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_financial_report_tree" model="ir.ui.view">
|
|
<field name="name">Account Financial Report (Template)</field>
|
|
<field name="model">afr</field>
|
|
<field name="type">tree</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Account Financial Report (Templates)">
|
|
<field name="name"/>
|
|
<field name="company_id"/>
|
|
<field name="currency_id"/>
|
|
<field name="inf_type"/>
|
|
<field name="columns"/>
|
|
<field name="display_account"/>
|
|
<field name="display_account_level" required="True" colspan="4"/>
|
|
<field name="fiscalyear_id"/>
|
|
<field name="tot_check" colspan="4"/>
|
|
<!--
|
|
<button name="print_report" string="Print" type="object"/>
|
|
-->
|
|
</tree>
|
|
|
|
</field>
|
|
</record>
|
|
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="account_financial_report_action">
|
|
<field name="name">Account Financial Report</field>
|
|
<field name="res_model">afr</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="help">Create your own Customized Account Financial Reports, in here, you will be able to create Templates for generating Two types of Reports: Balance Sheets and Income Statements, incluiding Analytic Ledgers. Besides, you can select within a set of choices to get better detailed report, be it that you ask it by one or several periods, by months (12 Months + YTD), or by quarters (4QRT's + YTD). Even you can get your reports in currencies other than the one set on your company.</field>
|
|
</record>
|
|
|
|
|
|
<menuitem
|
|
id="account_financial_report_menu"
|
|
name="Account Financial Report (Templates)"
|
|
parent="account.final_accounting_reports"
|
|
sequence="100"
|
|
groups="account_financial_report.group_afreport"
|
|
action="account_financial_report_action"/>
|
|
|
|
|
|
</data>
|
|
</openerp>
|