2020-01-29 18:37:08 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2018-10-01 11:57:07 +02:00
|
|
|
<odoo>
|
2022-04-13 12:18:36 +02:00
|
|
|
<record id="account_asset_profile_view_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.asset.profile.form</field>
|
|
|
|
<field name="model">account.asset.profile</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Asset profile">
|
|
|
|
<sheet>
|
|
|
|
<widget
|
|
|
|
name="web_ribbon"
|
|
|
|
title="Archived"
|
|
|
|
bg_color="bg-danger"
|
|
|
|
attrs="{'invisible': [('active', '=', True)]}"
|
|
|
|
/>
|
|
|
|
<div class="oe_title">
|
|
|
|
<label for="name" class="oe_edit_only" />
|
|
|
|
<h1>
|
|
|
|
<field name="name" />
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="group_ids" widget="many2many_tags" />
|
|
|
|
<field name="asset_product_item" />
|
|
|
|
<field name="active" invisible="1" />
|
|
|
|
<field
|
|
|
|
name="company_id"
|
|
|
|
widget="selection"
|
|
|
|
groups="base.group_multi_company"
|
|
|
|
/>
|
|
|
|
</group>
|
2020-01-29 18:37:08 +01:00
|
|
|
<group>
|
2022-04-13 12:18:36 +02:00
|
|
|
<field name="journal_id" />
|
|
|
|
<field name="account_asset_id" />
|
|
|
|
<field name="account_depreciation_id" />
|
|
|
|
<field name="account_expense_depreciation_id" />
|
|
|
|
<field name="account_plus_value_id" />
|
|
|
|
<field name="account_min_value_id" />
|
|
|
|
<field name="account_residual_value_id" />
|
|
|
|
<field name="allow_reversal" />
|
|
|
|
</group>
|
|
|
|
<group string="Depreciation Dates">
|
|
|
|
<field name="method_time" />
|
|
|
|
<field
|
|
|
|
name="method_number"
|
|
|
|
attrs="{'invisible': [('method_time', 'not in', ['number', 'year'])], 'required': [('method_time', 'in', ['number', 'year'])]}"
|
|
|
|
/>
|
|
|
|
<field name="method_period" />
|
|
|
|
<field name="days_calc" />
|
|
|
|
<field
|
|
|
|
name="use_leap_years"
|
|
|
|
attrs="{'invisible': [('days_calc', '=', True)]}"
|
|
|
|
/>
|
2020-01-29 18:37:08 +01:00
|
|
|
</group>
|
2022-04-13 12:18:36 +02:00
|
|
|
<group string="Depreciation Method">
|
|
|
|
<field name="method" />
|
|
|
|
<field
|
|
|
|
name="method_progress_factor"
|
|
|
|
attrs="{'invisible': [('method', 'in', ['linear', 'linear-limit'])], 'required': [('method', 'in', ['degressive', 'degr-linear', 'degr-limit'])]}"
|
|
|
|
/>
|
|
|
|
<field
|
|
|
|
name="prorata"
|
|
|
|
attrs="{'readonly':[('method_time','!=','year')]}"
|
|
|
|
/>
|
|
|
|
<field name="open_asset" />
|
|
|
|
</group>
|
|
|
|
<group
|
|
|
|
groups="analytic.group_analytic_accounting"
|
|
|
|
string="Analytic Information"
|
|
|
|
>
|
|
|
|
<field name="account_analytic_id" />
|
|
|
|
<field
|
|
|
|
name="analytic_tag_ids"
|
|
|
|
widget="many2many_tags"
|
|
|
|
groups="analytic.group_analytic_tags"
|
|
|
|
/>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<separator string="Notes" />
|
|
|
|
<field name="note" />
|
|
|
|
</sheet>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="account_asset_profile_view_tree" model="ir.ui.view">
|
|
|
|
<field name="name">account.asset.profile.tree</field>
|
|
|
|
<field name="model">account.asset.profile</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree>
|
|
|
|
<field name="name" />
|
|
|
|
<field name="method_number" optional="hide" />
|
|
|
|
<field name="method_period" optional="hide" />
|
|
|
|
<field name="journal_id" optional="show" />
|
|
|
|
<field name="account_asset_id" optional="hide" />
|
|
|
|
<field name="account_depreciation_id" optional="hide" />
|
|
|
|
<field name="account_expense_depreciation_id" optional="hide" />
|
|
|
|
<field name="account_plus_value_id" optional="hide" />
|
|
|
|
<field name="account_min_value_id" optional="hide" />
|
|
|
|
<field name="account_analytic_id" optional="hide" />
|
|
|
|
<field name="method" optional="show" />
|
|
|
|
<field name="prorata" optional="hide" />
|
|
|
|
<field
|
|
|
|
name="company_id"
|
|
|
|
groups="base.group_multi_company"
|
|
|
|
optional="show"
|
|
|
|
/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="account_asset_profile_view_search" model="ir.ui.view">
|
|
|
|
<field name="name">account.asset.profile.search</field>
|
|
|
|
<field name="model">account.asset.profile</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Asset Profile">
|
|
|
|
<field name="name" string="Asset Profile" />
|
|
|
|
<field name="journal_id" />
|
|
|
|
<separator />
|
|
|
|
<filter
|
|
|
|
string="Archived"
|
|
|
|
name="inactive"
|
|
|
|
domain="[('active', '=', False)]"
|
|
|
|
/>
|
|
|
|
<group name="groupby">
|
|
|
|
<filter
|
|
|
|
name="account_analytic_groupby"
|
|
|
|
string="account_analytic_id"
|
|
|
|
context="{'group_by': 'account_analytic_id'}"
|
2021-10-30 15:05:14 +02:00
|
|
|
/>
|
|
|
|
<filter
|
2022-04-13 12:18:36 +02:00
|
|
|
name="method_groupby"
|
|
|
|
string="Computation Method"
|
|
|
|
context="{'group_by': 'method'}"
|
2021-10-30 15:05:14 +02:00
|
|
|
/>
|
2022-04-13 12:18:36 +02:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="account_asset_profile_action" model="ir.actions.act_window">
|
|
|
|
<field name="name">Asset Profiles</field>
|
|
|
|
<field name="res_model">account.asset.profile</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
2018-10-01 11:57:07 +02:00
|
|
|
</odoo>
|