-
-
Notifications
You must be signed in to change notification settings - Fork 344
[16.0] [MIG] l10n_it_asset_management #3271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
odooNextev
wants to merge
40
commits into
OCA:16.0
from
odooNextev:16.0-mig-l10n_it_assets_management
Closed
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
8c822c1
[12.0][ADD] New module for assets management
alessandrocamilli 604b846
IMP icon and description
eLBati f81e5f1
[FIX] remove conflicts with l10n_it_fatturapa, add setup and tests
sergiocorato cda2f46
Translated using Weblate (Italian)
eLBati 23685a5
Translated using Weblate (Italian)
primes2h 80c1dc9
Translated using Weblate (Italian)
eLBati 5930be0
Reformatted after template update
SirTakobi 4232bc2
Manually fix manifest website key
SirTakobi 99505bf
[IMP] assets_management: black, isort, prettier
sergiocorato c948550
[MIG] assets_management filtering only compulsory changes from #2704
sergiocorato 6747984
Translated using Weblate (Italian)
francesco-ooops 11c7d4f
[FIX][14.0] assets_management sale
sergiocorato 19001f9
[FIX] assets_management: fix move_type during update asset
Borruso 86bde3a
[FIX] better string info
sergiocorato c5abe1c
[FIX] compute always all values
sergiocorato ea05f80
[FIX] assets_management: fix website in manifest
Aldeigja b86f0e9
Translated using Weblate (Italian)
mymage f1617c2
Translated using Weblate (Italian)
francesco-ooops 627a077
Translated using Weblate (Italian)
primes2h 1a152fd
Translated using Weblate (Italian)
sergiocorato 5d855c3
Translated using Weblate (Italian)
primes2h 725f4d8
Translated using Weblate (Italian)
mymage c1ebd2f
Translated using Weblate (Italian)
francesco-ooops be03ef1
Translated using Weblate (Italian)
mymage 5202dea
[FIX][14.0] depreciable amount computation by date
sergiocorato 566c8a4
[FIX] previsional report create only needed depreciation lines
sergiocorato 7146163
[14.0][FIX] currency convert function
sergiocorato 0882aab
[14.0][FIX] assets_management view html report
sergiocorato 5191541
Translated using Weblate (Italian)
sergiocorato de6fe72
Translated using Weblate (Italian)
mymage 48e32ac
[14.0][FIX] assets_management block creation of depreciation lines in…
sergiocorato f79de83
[14.0][IMP] remove unuseful error message when delete asset depreciation
sergiocorato fec5bbe
Translated using Weblate (Italian)
mymage ab0dad8
[FIX][14.0] assets_management do not report assets sold before report…
sergiocorato 5e9f17b
[14.0][IMP] add ability to dismiss directly an asset
sergiocorato a0d6261
[FIX] assets_management: correct permission management
PicchiSeba b13ab95
Translated using Weblate (Italian)
mymage 7b61bc5
[FIX] all: fix pre-commit deprecated syntax
HekkiMelody 373d6e3
[IMP] assets_management: pre-commit stuff
odooNextev c0db61c
[MIG] l10n_it_asset_management: Migration to 16.0
odooNextev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| ====================== | ||
| ITA - Gestione Cespiti | ||
| ====================== | ||
|
|
||
| .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |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/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 | ||
| :target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_asset_management | ||
| :alt: OCA/l10n-italy | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_asset_management | ||
| :alt: Translate me on Weblate | ||
| .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
| :target: https://runbot.odoo-community.org/runbot/122/16.0 | ||
| :alt: Try me on Runbot | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This modules allows account management of companies' assets. | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| **English** | ||
|
|
||
| You can create and manage assets from accounting section of Odoo. | ||
|
|
||
| Configuration must be done from Assets -> Assets Configuration, where depreciation types, modes and assets categories can be found. | ||
|
|
||
| Assets can both be created manually or via invoices and journal entries. | ||
| Depreciations can be generated by using the related wizard found in Assets -> Assets Management -> Generate Depreciations, or by triggering the same wizard from a single asset form view. | ||
|
|
||
|
|
||
| **Italiano** | ||
|
|
||
| È possibile creare e gestire cespiti dalla sezione contabilità di Odoo. | ||
|
|
||
| La configurazione dei cespiti dev'essere fatta andando in Cespiti -> Configurazione Cespiti, dove si trovano le categorie dei beni, i tipi e le modalità di ammortamento. | ||
|
|
||
| I cespiti possono essere creati manualmente o da fatture e registrazioni contabili. Gli ammortamenti possono essere generati utilizzando l'apposito wizard in Cespiti -> Gestione Cestpiti -> Genera Ammortamenti, o aprendo quello stesso wizard dalla scheda del cespite. | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_. | ||
| In case of trouble, please check there if your issue has already been reported. | ||
| If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
| `feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_asset_management%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Do not contact contributors directly about support or help with technical issues. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ~~~~~~~ | ||
|
|
||
| * Openforce | ||
|
|
||
| Contributors | ||
| ~~~~~~~~~~~~ | ||
|
|
||
| * Alessandro Camilli <alessandrocamilli@openforce.it> | ||
| * Silvio Gregorini <silviogregorini@openforce.it> | ||
| * Stefano Pezzini <stefanopezzini@openforce.it> | ||
| * Lorenzo Battistini <lb@takobi.online> | ||
| * Nextev Srl <odoo@nextev.it> | ||
|
|
||
| Base icon made by `surang <https://www.flaticon.com/authors/surang>`_ from `www.flaticon.com <https://www.flaticon.com/>`_. | ||
|
|
||
| Maintainers | ||
| ~~~~~~~~~~~ | ||
|
|
||
| This module is maintained by the OCA. | ||
|
|
||
| .. image:: https://odoo-community.org/logo.png | ||
| :alt: Odoo Community Association | ||
| :target: https://odoo-community.org | ||
|
|
||
| OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
| mission is to support the collaborative development of Odoo features and | ||
| promote its widespread use. | ||
|
|
||
| This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_asset_management>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Author(s): Silvio Gregorini (silviogregorini@openforce.it) | ||
| # Copyright 2019 Openforce Srls Unipersonale (www.openforce.it) | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
|
||
| from . import models | ||
| from . import report | ||
| from . import wizard | ||
| from .hooks import pre_absorb_old_module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # Author(s): Silvio Gregorini (silviogregorini@openforce.it) | ||
| # Copyright 2019 Openforce Srls Unipersonale (www.openforce.it) | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
|
||
| { | ||
| "name": "ITA - Gestione Cespiti", | ||
| "version": "16.0.1.0.0", | ||
| "category": "Localization/Italy", | ||
| "summary": "Gestione Cespiti", | ||
| "author": "Openforce, Odoo Community Association (OCA)", | ||
| "website": "https://github.com/OCA/l10n-italy", | ||
| "license": "AGPL-3", | ||
| "depends": [ | ||
| "account", | ||
| "account_financial_report", | ||
| "account_fiscal_year", | ||
| "mail", | ||
| ], | ||
| "data": [ | ||
| "security/ir.model.access.csv", | ||
| "security/res_groups.xml", | ||
| "security/rules.xml", | ||
| "data/ir_cron.xml", | ||
| "data/asset_data.xml", | ||
| "report/layout.xml", | ||
| "report/paperformat.xml", | ||
| "report/templates/asset_journal.xml", | ||
| "report/templates/asset_previsional.xml", | ||
| "report/reports.xml", | ||
| "views/asset_menuitems.xml", | ||
| "views/account_move.xml", | ||
| "views/asset.xml", | ||
| "views/asset_accounting_info.xml", | ||
| "views/asset_category.xml", | ||
| "views/asset_depreciation.xml", | ||
| "views/asset_depreciation_line.xml", | ||
| "views/asset_depreciation_line_type.xml", | ||
| "views/asset_depreciation_mode.xml", | ||
| "views/asset_depreciation_type.xml", | ||
| "views/asset_tag.xml", | ||
| "wizard/account_move_manage_asset_view.xml", | ||
| "wizard/asset_generate_depreciation_view.xml", | ||
| "wizard/asset_journal_report_view.xml", | ||
| "wizard/asset_previsional_report_view.xml", | ||
| ], | ||
| "external_dependencies": { | ||
| "python": [ | ||
| "openupgradelib", | ||
| ], | ||
| }, | ||
| "pre_init_hook": "pre_absorb_old_module", | ||
| "development_status": "Beta", | ||
| "installable": True, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <odoo noupdate="1"> | ||
|
|
||
| <!-- Natura ammortamento --> | ||
| <record id="ad_type_civilistico" model="asset.depreciation.type"> | ||
| <field name="name">Civilistico</field> | ||
| <field name="requires_account_move">1</field> | ||
| <field name="print_by_default">1</field> | ||
| </record> | ||
| <record id="ad_type_fiscale" model="asset.depreciation.type"> | ||
| <field name="name">Fiscale</field> | ||
| <field name="requires_account_move">0</field> | ||
| <field name="print_by_default">1</field> | ||
| </record> | ||
|
|
||
| <!-- Tipo operazione --> | ||
| <record id="adpl_type_riv" model="asset.depreciation.line.type"> | ||
| <field name="name">Rivalutazione</field> | ||
| <field name="code">RIV</field> | ||
| <field name="type">in</field> | ||
| </record> | ||
|
|
||
| <record id="adpl_type_sva" model="asset.depreciation.line.type"> | ||
| <field name="name">Svalutazione</field> | ||
| <field name="code">SVA</field> | ||
| <field name="type">out</field> | ||
| </record> | ||
|
|
||
| <!-- Metodi di ammortamento --> | ||
| <record id="ad_mode_immateriale" model="asset.depreciation.mode"> | ||
| <field name="name">IMMATERIALE</field> | ||
| <field name="used_asset_coeff">1</field> | ||
| </record> | ||
| <record id="ad_mode_materiale" model="asset.depreciation.mode"> | ||
| <field name="name">MATERIALE</field> | ||
| <field name="used_asset_coeff">1</field> | ||
| </record> | ||
| <record id="ad_mode_materiale_line" model="asset.depreciation.mode.line"> | ||
| <field name="mode_id" ref="ad_mode_materiale" /> | ||
| <field name="from_nr">1</field> | ||
| <field name="to_nr">1</field> | ||
| <field name="coefficient">0.5</field> | ||
| </record> | ||
|
|
||
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <odoo noupdate="1"> | ||
|
|
||
| <record id="clean_asset_accounting_info_cron" model="ir.cron"> | ||
| <field name="name">Vacuum Empty Asset Accounting Info</field> | ||
| <field name="active" eval="False" /> | ||
| <field name="user_id" ref="base.user_root" /> | ||
| <field name="interval_number">5</field> | ||
| <field name="interval_type">minutes</field> | ||
| <field name="numbercall">-1</field> | ||
| <field name="doall" eval="True" /> | ||
| <field name="model_id" ref="model_asset_accounting_info" /> | ||
| <field name="state">code</field> | ||
| <field name="code">model.cron_vacuum_table()</field> | ||
| </record> | ||
|
|
||
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
|
||
| from openupgradelib import openupgrade | ||
|
|
||
|
|
||
| def pre_absorb_old_module(cr): | ||
| if openupgrade.is_module_installed(cr, "assets_management"): | ||
| openupgrade.update_module_names( | ||
| cr, | ||
| [ | ||
| ("assets_management", "l10n_it_asset_management"), | ||
| ], | ||
| merge_modules=True, | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.