account-closing/account_cutoff_base/views/account_cutoff_mapping.xml

63 lines
2.6 KiB
XML
Raw Normal View History

2021-04-28 14:52:58 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2013-2020 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<flectra>
<record id="account_cutoff_mapping_form" model="ir.ui.view">
<field name="name">account.cutoff.mapping.form</field>
<field name="model">account.cutoff.mapping</field>
<field name="arch" type="xml">
<form string="Account Cut-off Mapping">
<field
name="company_id"
groups="base.group_multi_company"
widget="selection"
invisible="not context.get('account_cutoff_mapping_main_view', False)"
/>
<field name="account_id" />
<field name="cutoff_account_id" />
<field name="cutoff_type" />
</form>
</field>
</record>
<record id="account_cutoff_mapping_tree" model="ir.ui.view">
<field name="name">account.cutoff.mapping.tree</field>
<field name="model">account.cutoff.mapping</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field
name="company_id"
groups="base.group_multi_company"
widget="selection"
invisible="not context.get('account_cutoff_mapping_main_view', False)"
/>
<field name="account_id" />
<field name="cutoff_account_id" />
<field name="cutoff_type" />
</tree>
</field>
</record>
<record id="account_cutoff_mapping_action" model="ir.actions.act_window">
<field name="name">Cut-off Account Mapping</field>
<field name="res_model">account.cutoff.mapping</field>
<field name="view_mode">tree,form</field>
<field name="context">{'account_cutoff_mapping_main_view': True}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to start a new cutoff account mapping.
</p>
<p>
These account mappings allow you to have an cutoff account for expense/revenue that is not the same as the original expense/revenue account, using the same concept as the fiscal positions.
</p>
</field>
</record>
<menuitem
id="account_cutoff_mapping_menu"
parent="account.account_account_menu"
action="account_cutoff_mapping_action"
sequence="100"
/>
</flectra>