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.
91 lines
4.8 KiB
91 lines
4.8 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- TRIAL BALANCE -->
|
|
<record id="trial_balance_wizard" model="ir.ui.view">
|
|
<field name="name">Trial Balance</field>
|
|
<field name="model">trial.balance.report.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<group name="main_info">
|
|
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
|
</group>
|
|
<div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
|
|
<group name="filters">
|
|
<group name="date_range">
|
|
<field name="date_range_id"/>
|
|
<field name="date_from"/>
|
|
<field name="date_to"/>
|
|
<field name="fy_start_date" invisible="1"/>
|
|
</group>
|
|
<group name="other_filters">
|
|
<field name="target_move" widget="radio"/>
|
|
<field name="hide_account_at_0"/>
|
|
<field name="show_partner_details"/>
|
|
<field name="hierarchy_on" widget="radio" attrs="{'invisible':[('show_partner_details','=',True)]}"/>
|
|
<field name="limit_hierarchy_level" attrs="{'invisible':['|', ('hierarchy_on','=','none'),('show_partner_details','=',True)]}"/>
|
|
<field name="show_hierarchy_level" attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"/>
|
|
<field name="hide_parent_hierarchy_level" attrs="{'invisible':[('limit_hierarchy_level','=', False)]}"/>
|
|
<field name="foreign_currency"/>
|
|
</group>
|
|
</group>
|
|
<group name="partner_filter" attrs="{'invisible':[('show_partner_details','!=',True)]}" col="1">
|
|
<label for="partner_ids"/>
|
|
<field name="partner_ids"
|
|
nolabel="1"
|
|
widget="many2many_tags"
|
|
options="{'no_create': True}"/>
|
|
</group>
|
|
<label for="journal_ids"/>
|
|
<field name="journal_ids"
|
|
widget="many2many_tags"
|
|
nolabel="1"
|
|
options="{'no_create': True}"
|
|
/>
|
|
<group attrs="{'invisible':[('show_partner_details','!=',True)]}"/>
|
|
<div/>
|
|
<group name="account_filter" col="4">
|
|
<label for="account_ids" colspan="4"/>
|
|
<field name="receivable_accounts_only"/>
|
|
<field name="payable_accounts_only"/>
|
|
<field name="account_ids"
|
|
nolabel="1"
|
|
widget="many2many_tags"
|
|
options="{'no_create': True}"
|
|
colspan="4"/>
|
|
</group>
|
|
</div>
|
|
<div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
|
|
<field name="not_only_one_unaffected_earnings_account" invisible="1"/>
|
|
<group/>
|
|
<h4>Trial Balance can be computed only if selected company have only one unaffected earnings account.</h4>
|
|
<group/>
|
|
</div>
|
|
<footer>
|
|
<div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', True)]}">
|
|
<button name="button_export_html" string="View"
|
|
type="object" default_focus="1" class="oe_highlight"/>
|
|
or
|
|
<button name="button_export_pdf" string="Export PDF" type="object"/>
|
|
or
|
|
<button name="button_export_xlsx" string="Export XLSX" type="object"/>
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
</div>
|
|
<div attrs="{'invisible': [('not_only_one_unaffected_earnings_account', '=', False)]}">
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
</div>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<act_window id="action_trial_balance_wizard"
|
|
name="Trial Balance"
|
|
res_model="trial.balance.report.wizard"
|
|
view_type="form"
|
|
view_mode="form"
|
|
view_id="trial_balance_wizard"
|
|
target="new" />
|
|
|
|
</odoo>
|