Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions l10n_it_asset_management/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

======================
ITA - Gestione Cespiti
======================
Expand All @@ -17,7 +13,7 @@ ITA - Gestione Cespiti
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
Expand Down Expand Up @@ -88,22 +84,23 @@ Authors
Contributors
------------

- Alessandro Camilli <alessandrocamilli@openforce.it>
- Silvio Gregorini <silviogregorini@openforce.it>
- Stefano Pezzini <stefanopezzini@openforce.it>
- Lorenzo Battistini <lb@takobi.online>
- `TAKOBI <https://takobi.online>`__:
- Alessandro Camilli <alessandrocamilli@openforce.it>
- Silvio Gregorini <silviogregorini@openforce.it>
- Stefano Pezzini <stefanopezzini@openforce.it>
- Lorenzo Battistini <lb@takobi.online>
- `TAKOBI <https://takobi.online>`__:

- Simone Rubino <sir@takobi.online>
- Simone Rubino <sir@takobi.online>

- `Aion Tech <https://aiontech.company/>`__:
- `Aion Tech <https://aiontech.company/>`__:

- Simone Rubino <simone.rubino@aion-tech.it>
- Simone Rubino <simone.rubino@aion-tech.it>

- Nextev Srl <odoo@nextev.it>
- Nextev Srl <odoo@nextev.it>

Base icon made by `surang <https://www.flaticon.com/authors/surang>`__
from `www.flaticon.com <http://www.flaticon.com>`__.
from
[`www.flaticon.com](https://www.flaticon.com/) <http://www.flaticon.com](https://www.flaticon.com/)>`__.

Maintainers
-----------
Expand Down
1 change: 1 addition & 0 deletions l10n_it_asset_management/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"views/asset_depreciation_line.xml",
"views/asset_depreciation_line_type.xml",
"views/asset_depreciation_mode.xml",
"views/asset_depreciation_situation.xml",
"views/asset_depreciation_type.xml",
"views/asset_tag.xml",
"wizard/account_move_manage_asset_view.xml",
Expand Down
8 changes: 8 additions & 0 deletions l10n_it_asset_management/models/asset_depreciation.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ class AssetDepreciation(models.Model):
string="Asset",
)

category_id = fields.Many2one(
"asset.category",
readonly=True,
related="l10n_it_asset_id.category_id",
store=True,
string="Category",
)

company_id = fields.Many2one(
"res.company",
readonly=True,
Expand Down
29 changes: 12 additions & 17 deletions l10n_it_asset_management/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>README.rst</title>
<title>ITA - Gestione Cespiti</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,21 +360,16 @@
</style>
</head>
<body>
<div class="document">
<div class="document" id="ita-gestione-cespiti">
<h1 class="title">ITA - Gestione Cespiti</h1>


<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
</a>
<div class="section" id="ita-gestione-cespiti">
<h1>ITA - Gestione Cespiti</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:15a44ddb2862996cd44d811095dd3607974393dcddf720ac0e193182e14eb7da
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_asset_management"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_asset_management"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_asset_management"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_asset_management"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This modules allows account management of companies’ assets.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -390,7 +385,7 @@ <h1>ITA - Gestione Cespiti</h1>
</ul>
</div>
<div class="section" id="usage">
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p><strong>English</strong></p>
<p>You can create and manage assets from accounting section of Odoo.</p>
<p>Configuration must be done from Assets -&gt; Assets Configuration, where
Expand All @@ -410,23 +405,23 @@ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
Ammortamenti, o aprendo quello stesso wizard dalla scheda del cespite.</p>
</div>
<div class="section" id="bug-tracker">
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_asset_management%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
<div class="section" id="authors">
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<ul class="simple">
<li>Openforce</li>
</ul>
</div>
<div class="section" id="contributors">
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li>Alessandro Camilli &lt;<a class="reference external" href="mailto:alessandrocamilli&#64;openforce.it">alessandrocamilli&#64;openforce.it</a>&gt;</li>
<li>Silvio Gregorini &lt;<a class="reference external" href="mailto:silviogregorini&#64;openforce.it">silviogregorini&#64;openforce.it</a>&gt;</li>
Expand All @@ -443,10 +438,11 @@ <h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
<li>Nextev Srl &lt;<a class="reference external" href="mailto:odoo&#64;nextev.it">odoo&#64;nextev.it</a>&gt;</li>
</ul>
<p>Base icon made by <a class="reference external" href="https://www.flaticon.com/authors/surang">surang</a>
from <a class="reference external" href="http://www.flaticon.com">www.flaticon.com</a>.</p>
from
[<a class="reference external" href="http://www.flaticon.com](https://www.flaticon.com/)">www.flaticon.com](https://www.flaticon.com/)</a>.</p>
</div>
<div class="section" id="maintainers">
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
Expand All @@ -459,6 +455,5 @@ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
</div>
</div>
</div>
</div>
</body>
</html>
41 changes: 41 additions & 0 deletions l10n_it_asset_management/views/asset_depreciation_situation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_asset_depreciation_situation_list" model="ir.ui.view">
<field name="name">asset.depreciation.situation.list</field>
<field name="model">asset.depreciation</field>
<field name="arch" type="xml">
<list string="Asset Situation">
<field name="l10n_it_asset_id" string="Asset" />
<field name="type_id" string="Depreciation Type" />
<field
name="amount_depreciable_updated"
string="Depreciable Amount"
sum="Total Depreciable"
/>
<field
name="amount_depreciated"
string="Depreciated Amount"
sum="Total Depreciated"
/>
<field name="amount_residual" string="Residual" sum="Total Residual" />
<field name="last_depreciation_date" string="Last Depreciation Date" />
</list>
</field>
</record>

<record id="action_asset_depreciation_situation" model="ir.actions.act_window">
<field name="name">Asset Situation</field>
<field name="res_model">asset.depreciation</field>
<field name="view_mode">list,form</field>
<field name="view_id" ref="view_asset_depreciation_situation_list" />
<field name="context">{'group_by': 'category_id'}</field>
</record>

<menuitem
id="menu_asset_situation"
name="Asset Situation"
parent="menu_asset_reports"
action="action_asset_depreciation_situation"
sequence="30"
/>
</odoo>
Loading