mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
148 lines
6.3 KiB
XML
148 lines
6.3 KiB
XML
<odoo>
|
|
<record id="view_account_asset_compute_batch_form" model="ir.ui.view">
|
|
<field name="name">account.asset.compute.batch.form</field>
|
|
<field name="model">account.asset.compute.batch</field>
|
|
<field name="priority">10</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Asset Compute Batch">
|
|
<header>
|
|
<button
|
|
name="action_compute"
|
|
states="draft"
|
|
type="object"
|
|
string="Compute"
|
|
class="oe_highlight"
|
|
/>
|
|
<field
|
|
name="state"
|
|
widget="statusbar"
|
|
statusbar_visible="draft,computed"
|
|
/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box">
|
|
<button
|
|
name="open_moves"
|
|
icon="fa-bars"
|
|
class="oe_stat_button"
|
|
string="Journal Entries"
|
|
type="object"
|
|
/>
|
|
<button
|
|
name="open_move_lines"
|
|
icon="fa-bars"
|
|
class="oe_stat_button"
|
|
string="Depreciations"
|
|
type="object"
|
|
/>
|
|
</div>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="name" />
|
|
</h1>
|
|
</div>
|
|
<group name="main_group">
|
|
<group>
|
|
<field name="description" />
|
|
<field name="date_end" />
|
|
<field name="auto_compute" />
|
|
<field name="delay_post" />
|
|
</group>
|
|
<group>
|
|
<field
|
|
name="company_id"
|
|
groups="base.group_multi_company"
|
|
/>
|
|
<field name="profile_ids" widget="many2many_tags">
|
|
<tree>
|
|
<field name="name" />
|
|
</tree>
|
|
</field>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Depreciation By Profile" name="profile_report">
|
|
<field name="profile_report" readonly="1">
|
|
<tree>
|
|
<field name="profile_id" />
|
|
<field name="currency_id" invisible="1" />
|
|
<field name="amount" />
|
|
</tree>
|
|
</field>
|
|
<group class="oe_subtotal_footer oe_right">
|
|
<field name="currency_id" invisible="1" />
|
|
<div class="oe_subtotal_footer_separator oe_inline">
|
|
<label for="depre_amount" />
|
|
</div>
|
|
<field
|
|
name="depre_amount"
|
|
nolabel="1"
|
|
class="oe_subtotal_footer_separator"
|
|
/>
|
|
</group>
|
|
</page>
|
|
<page string="Exception" name="exception" states="exception">
|
|
<field name="note" readonly="1" />
|
|
</page>
|
|
</notebook>
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" />
|
|
<field name="activity_ids" />
|
|
<field name="message_ids" />
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_account_asset_compute_batch_tree" model="ir.ui.view">
|
|
<field name="name">account.asset.compute.batch.tree</field>
|
|
<field name="model">account.asset.compute.batch</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Asset Compute Batch">
|
|
<field name="name" />
|
|
<field name="description" />
|
|
<field name="date_end" />
|
|
<field name="profile_ids" widget="many2many_tags" optional="hide" />
|
|
<field name="depre_amount" sum="Total" />
|
|
<field
|
|
name="state"
|
|
widget="badge"
|
|
decoration-info="state == 'draft'"
|
|
decoration-success="state == 'computed'"
|
|
decoration-danger="state == 'exception'"
|
|
/>
|
|
<field name="company_id" groups="base.group_multi_company" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record model="ir.ui.view" id="search_account_asset_compute_batch_filter">
|
|
<field name="name">search.account.asset.compute.batch.filter</field>
|
|
<field name="model">account.asset.compute.batch</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Asset Compute Batch">
|
|
<field
|
|
name="name"
|
|
string="Batch Number"
|
|
filter_domain="[('name', 'ilike', self)]"
|
|
/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="account_asset_compute_batch_action" model="ir.actions.act_window">
|
|
<field name="name">Compute Asset Batch</field>
|
|
<field name="res_model">account.asset.compute.batch</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="view_id" ref="view_account_asset_compute_batch_tree" />
|
|
<field name="search_view_id" ref="search_account_asset_compute_batch_filter" />
|
|
</record>
|
|
|
|
<menuitem
|
|
id="account_asset_compute_batch_menu"
|
|
action="account_asset_compute_batch_action"
|
|
parent="account_asset_management.menu_finance_assets"
|
|
sequence="200"
|
|
/>
|
|
</odoo>
|