mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-22 21:52:04 +00:00
63 lines
2.5 KiB
XML
63 lines
2.5 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>
|
||
|
<field name="cutoff_type" />
|
||
|
<field name="account_id" />
|
||
|
<field name="cutoff_account_id" />
|
||
|
<field
|
||
|
name="company_id"
|
||
|
options="{'no_create': True}"
|
||
|
groups="base.group_multi_company"
|
||
|
/>
|
||
|
<field name="company_id" invisible="1" />
|
||
|
</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="cutoff_type" />
|
||
|
<field name="account_id" />
|
||
|
<field name="cutoff_account_id" />
|
||
|
<field
|
||
|
name="company_id"
|
||
|
groups="base.group_multi_company"
|
||
|
options="{'no_create': True}"
|
||
|
optional="show"
|
||
|
/>
|
||
|
<field name="company_id" column_invisible="1" />
|
||
|
</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="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>
|