mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-25 07:02:04 +00:00
63 lines
2.6 KiB
XML
63 lines
2.6 KiB
XML
|
<?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>
|