2020-01-29 18:37:08 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2018-10-01 11:57:07 +02:00
|
|
|
<odoo>
|
2020-01-29 18:37:08 +01:00
|
|
|
<data>
|
|
|
|
<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">
|
2021-10-30 15:05:14 +02:00
|
|
|
<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>
|
2020-01-29 18:37:08 +01:00
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="group_ids" widget="many2many_tags" />
|
|
|
|
<field name="asset_product_item" />
|
2021-10-30 15:05:14 +02:00
|
|
|
<field name="active" invisible="1" />
|
2020-01-29 18:37:08 +01:00
|
|
|
<field
|
2021-10-30 15:05:14 +02:00
|
|
|
name="company_id"
|
|
|
|
widget="selection"
|
|
|
|
groups="base.group_multi_company"
|
|
|
|
/>
|
2020-01-29 18:37:08 +01:00
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<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" />
|
2021-07-06 17:34:48 +02:00
|
|
|
<field name="allow_reversal" />
|
2020-01-29 18:37:08 +01:00
|
|
|
</group>
|
|
|
|
<group string="Depreciation Dates">
|
|
|
|
<field name="method_time" />
|
|
|
|
<field
|
2021-10-30 15:05:14 +02:00
|
|
|
name="method_number"
|
|
|
|
attrs="{'invisible': [('method_time', 'not in', ['number', 'year'])], 'required': [('method_time', 'in', ['number', 'year'])]}"
|
|
|
|
/>
|
2020-01-29 18:37:08 +01:00
|
|
|
<field name="method_period" />
|
|
|
|
<field name="days_calc" />
|
2020-03-19 13:17:36 +01:00
|
|
|
<field
|
2021-10-30 15:05:14 +02:00
|
|
|
name="use_leap_years"
|
|
|
|
attrs="{'invisible': [('days_calc', '=', True)]}"
|
|
|
|
/>
|
2020-01-29 18:37:08 +01:00
|
|
|
</group>
|
|
|
|
<group string="Depreciation Method">
|
|
|
|
<field name="method" />
|
|
|
|
<field
|
2021-10-30 15:05:14 +02:00
|
|
|
name="method_progress_factor"
|
|
|
|
attrs="{'invisible': [('method', 'in', ['linear', 'linear-limit'])], 'required': [('method', 'in', ['degressive', 'degr-linear', 'degr-limit'])]}"
|
|
|
|
/>
|
2020-01-29 18:37:08 +01:00
|
|
|
<field
|
2021-10-30 15:05:14 +02:00
|
|
|
name="prorata"
|
|
|
|
attrs="{'readonly':[('method_time','!=','year')]}"
|
|
|
|
/>
|
2020-01-29 18:37:08 +01:00
|
|
|
<field name="open_asset" />
|
|
|
|
</group>
|
|
|
|
<group
|
2021-10-30 15:05:14 +02:00
|
|
|
groups="analytic.group_analytic_accounting"
|
|
|
|
string="Analytic Information"
|
|
|
|
>
|
2020-01-29 18:37:08 +01:00
|
|
|
<field name="account_analytic_id" />
|
2021-10-30 15:05:14 +02:00
|
|
|
<field
|
|
|
|
name="analytic_tag_ids"
|
|
|
|
widget="many2many_tags"
|
|
|
|
groups="analytic.group_analytic_tags"
|
|
|
|
/>
|
2020-01-29 18:37:08 +01:00
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
<separator string="Notes" />
|
|
|
|
<field name="note" />
|
2021-10-30 15:05:14 +02:00
|
|
|
</sheet>
|
2020-01-29 18:37:08 +01:00
|
|
|
</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 string="Asset profile">
|
|
|
|
<field name="name" />
|
2021-10-30 15:05:14 +02:00
|
|
|
<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"
|
|
|
|
/>
|
2020-01-29 18:37:08 +01:00
|
|
|
</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" />
|
2021-10-30 15:05:14 +02:00
|
|
|
<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'}"
|
|
|
|
/>
|
|
|
|
<filter
|
|
|
|
name="method_groupby"
|
|
|
|
string="Computation Method"
|
|
|
|
context="{'group_by': 'method'}"
|
|
|
|
/>
|
|
|
|
</group>
|
2020-01-29 18:37:08 +01:00
|
|
|
</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>
|
|
|
|
</data>
|
2018-10-01 11:57:07 +02:00
|
|
|
</odoo>
|