2
0

[IMP] account_asset_management: Improve code and translation

This commit is contained in:
Carlos Dauden 2020-03-19 13:17:36 +01:00 committed by Rodrigo
parent 869cc39d5e
commit 389d82839e
8 changed files with 294 additions and 1328 deletions

View File

@ -1,735 +0,0 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * account_asset
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-06-07 19:36+0000\n"
"PO-Revision-Date: 2013-06-07 19:36+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: account_asset
#: view:account.asset.asset:0
msgid "Assets in draft and open states"
msgstr ""
#. module: account_asset
#: field:account.asset.category,method_end:0
#: field:account.asset.history,method_end:0
#: field:asset.modify,method_end:0
msgid "Ending date"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,value_residual:0
msgid "Residual Value"
msgstr ""
#. module: account_asset
#: field:account.asset.category,account_expense_depreciation_id:0
msgid "Depr. Expense Account"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
msgid "Group By..."
msgstr ""
#. module: account_asset
#: field:asset.asset.report,gross_value:0
msgid "Gross Amount"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: field:account.asset.depreciation.line,asset_id:0
#: field:account.asset.history,asset_id:0
#: field:account.move.line,asset_id:0
#: view:asset.asset.report:0
#: field:asset.asset.report,asset_id:0
#: model:ir.model,name:account_asset.model_account_asset_asset
msgid "Asset"
msgstr ""
#. module: account_asset
#: help:account.asset.asset,prorata:0
#: help:account.asset.category,prorata:0
msgid "Indicates that the first depreciation entry for this asset have to be done from the purchase date instead of the first January"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,method:0
#: selection:account.asset.category,method:0
msgid "Linear"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,company_id:0
#: field:account.asset.category,company_id:0
#: view:asset.asset.report:0
#: field:asset.asset.report,company_id:0
msgid "Company"
msgstr ""
#. module: account_asset
#: view:asset.modify:0
msgid "Modify"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,state:0
#: view:asset.asset.report:0
#: selection:asset.asset.report,state:0
msgid "Running"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Set to Draft"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
#: model:ir.actions.act_window,name:account_asset.action_asset_asset_report
#: model:ir.model,name:account_asset.model_asset_asset_report
#: model:ir.ui.menu,name:account_asset.menu_action_asset_asset_report
msgid "Assets Analysis"
msgstr ""
#. module: account_asset
#: field:asset.modify,name:0
msgid "Reason"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,method_progress_factor:0
#: field:account.asset.category,method_progress_factor:0
msgid "Degressive Factor"
msgstr ""
#. module: account_asset
#: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_list_normal
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_list_normal
msgid "Asset Categories"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: field:account.asset.asset,account_move_line_ids:0
#: field:account.move.line,entry_ids:0
#: model:ir.actions.act_window,name:account_asset.act_entries_open
msgid "Entries"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: field:account.asset.asset,depreciation_line_ids:0
msgid "Depreciation Lines"
msgstr ""
#. module: account_asset
#: help:account.asset.asset,salvage_value:0
msgid "It is the amount you plan to have that you cannot depreciate."
msgstr ""
#. module: account_asset
#: help:account.asset.asset,method_period:0
msgid "The amount of time between two depreciations, in months"
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,depreciation_date:0
#: view:asset.asset.report:0
#: field:asset.asset.report,depreciation_date:0
msgid "Depreciation Date"
msgstr ""
#. module: account_asset
#: constraint:account.asset.asset:0
msgid "Error ! You cannot create recursive assets."
msgstr ""
#. module: account_asset
#: field:asset.asset.report,posted_value:0
msgid "Posted Amount"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: view:asset.asset.report:0
#: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_form
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_form
#: model:ir.ui.menu,name:account_asset.menu_finance_assets
#: model:ir.ui.menu,name:account_asset.menu_finance_config_assets
msgid "Assets"
msgstr ""
#. module: account_asset
#: field:account.asset.category,account_depreciation_id:0
msgid "Depreciation Account"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: view:account.asset.category:0
#: view:account.asset.history:0
#: view:asset.modify:0
#: field:asset.modify,note:0
msgid "Notes"
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,move_id:0
msgid "Depreciation Entry"
msgstr ""
#. module: account_asset
#: code:addons/account_asset/account_asset.py:82
#, python-format
msgid "Error!"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
#: field:asset.asset.report,nbr:0
msgid "# of Depreciation Lines"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,method_period:0
msgid "Number of Months in a Period"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
msgid "Assets in draft state"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,method_end:0
#: selection:account.asset.asset,method_time:0
#: selection:account.asset.category,method_time:0
#: selection:account.asset.history,method_time:0
msgid "Ending Date"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,code:0
msgid "Reference"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Account Asset"
msgstr ""
#. module: account_asset
#: model:ir.actions.act_window,name:account_asset.action_asset_depreciation_confirmation_wizard
#: model:ir.ui.menu,name:account_asset.menu_asset_depreciation_confirmation_wizard
msgid "Compute Assets"
msgstr ""
#. module: account_asset
#: field:account.asset.category,method_period:0
#: field:account.asset.history,method_period:0
#: field:asset.modify,method_period:0
msgid "Period Length"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,state:0
#: view:asset.asset.report:0
#: selection:asset.asset.report,state:0
msgid "Draft"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
msgid "Date of asset purchase"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Change Duration"
msgstr ""
#. module: account_asset
#: help:account.asset.asset,method_number:0
#: help:account.asset.category,method_number:0
#: help:account.asset.history,method_number:0
msgid "The number of depreciations needed to depreciate your asset"
msgstr ""
#. module: account_asset
#: view:account.asset.category:0
msgid "Analytic Information"
msgstr ""
#. module: account_asset
#: field:account.asset.category,account_analytic_id:0
msgid "Analytic account"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,method:0
#: field:account.asset.category,method:0
msgid "Computation Method"
msgstr ""
#. module: account_asset
#: constraint:account.asset.asset:0
msgid "Prorata temporis can be applied only for time method \"number of depreciations\"."
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,remaining_value:0
msgid "Next Period Depreciation"
msgstr ""
#. module: account_asset
#: help:account.asset.history,method_period:0
msgid "Time in month between two depreciations"
msgstr ""
#. module: account_asset
#: view:asset.modify:0
#: model:ir.actions.act_window,name:account_asset.action_asset_modify
#: model:ir.model,name:account_asset.model_asset_modify
msgid "Modify Asset"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,salvage_value:0
msgid "Salvage Value"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,category_id:0
#: view:account.asset.category:0
#: field:account.invoice.line,asset_category_id:0
#: view:asset.asset.report:0
msgid "Asset Category"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Assets in closed state"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,parent_id:0
msgid "Parent Asset"
msgstr ""
#. module: account_asset
#: view:account.asset.history:0
#: model:ir.model,name:account_asset.model_account_asset_history
msgid "Asset history"
msgstr ""
#. module: account_asset
#: view:account.asset.category:0
msgid "Search Asset Category"
msgstr ""
#. module: account_asset
#: view:asset.modify:0
msgid "months"
msgstr ""
#. module: account_asset
#: model:ir.model,name:account_asset.model_account_invoice_line
msgid "Invoice Line"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Depreciation Board"
msgstr ""
#. module: account_asset
#: field:asset.asset.report,unposted_value:0
msgid "Unposted Amount"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,method_time:0
#: field:account.asset.category,method_time:0
#: field:account.asset.history,method_time:0
msgid "Time Method"
msgstr ""
#. module: account_asset
#: view:asset.depreciation.confirmation.wizard:0
#: view:asset.modify:0
msgid "or"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,note:0
#: field:account.asset.category,note:0
#: field:account.asset.history,note:0
msgid "Note"
msgstr ""
#. module: account_asset
#: help:account.asset.history,method_time:0
msgid "The method to use to compute the dates and number of depreciation lines.\n"
"Number of Depreciations: Fix the number of depreciation lines and the time between 2 depreciations.\n"
"Ending Date: Choose the time between 2 depreciations and the date the depreciations won't go beyond."
msgstr ""
#. module: account_asset
#: help:account.asset.asset,method_time:0
#: help:account.asset.category,method_time:0
msgid "Choose the method to use to compute the dates and number of depreciation lines.\n"
" * Number of Depreciations: Fix the number of depreciation lines and the time between 2 depreciations.\n"
" * Ending Date: Choose the time between 2 depreciations and the date the depreciations won't go beyond."
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
msgid "Assets in running state"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Closed"
msgstr ""
#. module: account_asset
#: help:account.asset.asset,state:0
msgid "When an asset is created, the status is 'Draft'.\n"
"If the asset is confirmed, the status goes in 'Running' and the depreciation lines can be posted in the accounting.\n"
"You can manually close an asset when the depreciation is over. If the last line of depreciation is posted, the asset automatically goes in that status."
msgstr ""
#. module: account_asset
#: field:account.asset.asset,state:0
#: field:asset.asset.report,state:0
msgid "Status"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,partner_id:0
#: field:asset.asset.report,partner_id:0
msgid "Partner"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
msgid "Posted depreciation lines"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,child_ids:0
msgid "Children Assets"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
msgid "Date of depreciation"
msgstr ""
#. module: account_asset
#: field:account.asset.history,user_id:0
msgid "User"
msgstr ""
#. module: account_asset
#: field:account.asset.category,account_asset_id:0
msgid "Asset Account"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
msgid "Extended Filters..."
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: view:asset.depreciation.confirmation.wizard:0
msgid "Compute"
msgstr ""
#. module: account_asset
#: view:account.asset.history:0
msgid "Asset History"
msgstr ""
#. module: account_asset
#: model:ir.model,name:account_asset.model_asset_depreciation_confirmation_wizard
msgid "asset.depreciation.confirmation.wizard"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,active:0
msgid "Active"
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,parent_state:0
msgid "State of Asset"
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,name:0
msgid "Depreciation Name"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: field:account.asset.asset,history_ids:0
msgid "History"
msgstr ""
#. module: account_asset
#: view:asset.depreciation.confirmation.wizard:0
msgid "Compute Asset"
msgstr ""
#. module: account_asset
#: field:asset.depreciation.confirmation.wizard,period_id:0
msgid "Period"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "General"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,prorata:0
#: field:account.asset.category,prorata:0
msgid "Prorata Temporis"
msgstr ""
#. module: account_asset
#: model:ir.model,name:account_asset.model_account_invoice
msgid "Invoice"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Set to Close"
msgstr ""
#. module: account_asset
#: view:asset.depreciation.confirmation.wizard:0
#: view:asset.modify:0
msgid "Cancel"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,state:0
#: selection:asset.asset.report,state:0
msgid "Close"
msgstr ""
#. module: account_asset
#: model:ir.model,name:account_asset.model_account_move_line
msgid "Journal Items"
msgstr ""
#. module: account_asset
#: view:asset.modify:0
msgid "Asset Durations to Modify"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,purchase_date:0
#: view:asset.asset.report:0
#: field:asset.asset.report,purchase_date:0
msgid "Purchase Date"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,method:0
#: selection:account.asset.category,method:0
msgid "Degressive"
msgstr ""
#. module: account_asset
#: help:asset.depreciation.confirmation.wizard,period_id:0
msgid "Choose the period for which you want to automatically post the depreciation lines of running assets"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Current"
msgstr ""
#. module: account_asset
#: code:addons/account_asset/account_asset.py:82
#, python-format
msgid "You cannot delete an asset that contains posted depreciation lines."
msgstr ""
#. module: account_asset
#: view:account.asset.category:0
msgid "Depreciation Method"
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,amount:0
msgid "Current Depreciation"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,name:0
msgid "Asset Name"
msgstr ""
#. module: account_asset
#: field:account.asset.category,open_asset:0
msgid "Skip Draft State"
msgstr ""
#. module: account_asset
#: view:account.asset.category:0
msgid "Depreciation Dates"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,currency_id:0
msgid "Currency"
msgstr ""
#. module: account_asset
#: field:account.asset.category,journal_id:0
msgid "Journal"
msgstr ""
#. module: account_asset
#: field:account.asset.history,name:0
msgid "History name"
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,depreciated_value:0
msgid "Amount Already Depreciated"
msgstr ""
#. module: account_asset
#: help:account.asset.asset,method:0
#: help:account.asset.category,method:0
msgid "Choose the method to use to compute the amount of depreciation lines.\n"
" * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n"
" * Degressive: Calculated on basis of: Residual Value * Degressive Factor"
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,move_check:0
#: view:asset.asset.report:0
#: field:asset.asset.report,move_check:0
msgid "Posted"
msgstr ""
#. module: account_asset
#: model:ir.actions.act_window,help:account_asset.action_asset_asset_report
msgid "<p>\n"
" From this report, you can have an overview on all depreciation. The\n"
" tool search can also be used to personalise your Assets reports and\n"
" so, match this analysis to your needs;\n"
" </p>\n"
" "
msgstr ""
#. module: account_asset
#: field:account.asset.asset,purchase_value:0
msgid "Gross Value"
msgstr ""
#. module: account_asset
#: field:account.asset.category,name:0
msgid "Name"
msgstr ""
#. module: account_asset
#: help:account.asset.category,open_asset:0
msgid "Check this if you want to automatically confirm the assets of this category when created by invoices."
msgstr ""
#. module: account_asset
#: field:asset.asset.report,name:0
msgid "Year"
msgstr ""
#. module: account_asset
#: model:ir.model,name:account_asset.model_account_asset_depreciation_line
msgid "Asset depreciation line"
msgstr ""
#. module: account_asset
#: view:account.asset.category:0
#: field:asset.asset.report,asset_category_id:0
#: model:ir.model,name:account_asset.model_account_asset_category
msgid "Asset category"
msgstr ""
#. module: account_asset
#: view:asset.asset.report:0
#: field:asset.asset.report,depreciation_value:0
msgid "Amount of Depreciation Lines"
msgstr ""
#. module: account_asset
#: code:addons/account_asset/wizard/wizard_asset_compute.py:50
#, python-format
msgid "Created Asset Moves"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Add an internal note here..."
msgstr ""
#. module: account_asset
#: field:account.asset.depreciation.line,sequence:0
msgid "Sequence"
msgstr ""
#. module: account_asset
#: help:account.asset.category,method_period:0
msgid "State here the time between 2 depreciations, in months"
msgstr ""
#. module: account_asset
#: field:account.asset.history,date:0
msgid "Date"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,method_number:0
#: selection:account.asset.asset,method_time:0
#: field:account.asset.category,method_number:0
#: selection:account.asset.category,method_time:0
#: field:account.asset.history,method_number:0
#: selection:account.asset.history,method_time:0
#: field:asset.modify,method_number:0
msgid "Number of Depreciations"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Create Move"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Confirm Asset"
msgstr ""
#. module: account_asset
#: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_tree
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_tree
msgid "Asset Hierarchy"
msgstr ""

View File

@ -6,6 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-03-20 00:09+0000\n"
"PO-Revision-Date: 2020-03-20 00:09+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -241,14 +243,6 @@ msgid ""
"when created by invoices."
msgstr ""
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__method
msgid ""
"Choose the method to use to compute the amount of depreciation lines.\n"
" * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n"
" * Degressive: Calculated on basis of: Residual Value * Degressive Factor * Degressive-Linear (only for Time Method = Year): Degressive becomes linear when the annual linear depreciation exceeds the annual degressive depreciation"
msgstr ""
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__method_time
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__method_time
@ -258,6 +252,7 @@ msgid ""
msgstr ""
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__method
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__method
msgid ""
"Choose the method to use to compute the depreciation lines.\n"
@ -617,6 +612,7 @@ msgid "Illegal value %s in asset.method."
msgstr ""
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__prorata
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__prorata
msgid ""
"Indicates that the first depreciation entry for this asset has to be done "
@ -624,14 +620,6 @@ msgid ""
"year."
msgstr ""
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__prorata
msgid ""
"Indicates that the first depreciation entry for this asset have to be done "
"from the depreciation start date instead of the first day of the fiscal "
"year."
msgstr ""
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
msgid "Init"
@ -970,7 +958,7 @@ msgstr ""
#, python-format
msgid ""
"The '_compute_year_amount' method is only intended for Time Method 'Number "
"of Years."
"of Years'."
msgstr ""
#. module: account_asset_management
@ -1024,7 +1012,7 @@ msgstr ""
#: model:ir.model.fields,help:account_asset_management.field_account_asset_line__depreciation_base
msgid ""
"This amount represent the depreciation base of the asset (Purchase Value - "
"Salvage Value."
"Salvage Value)."
msgstr ""
#. module: account_asset_management

View File

@ -19,21 +19,20 @@
# SaFi J. <safi2266@gmail.com>, 2015
# Yael Terrettaz, 2015
# yterrettaz, 2015
# Carlos Dauden <carlos.dauden@tecnativa.com, 2020
msgid ""
msgstr ""
"Project-Id-Version: account-financial-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-14 00:45+0000\n"
"PO-Revision-Date: 2020-07-22 11:19+0000\n"
"Last-Translator: Harald Panten <harald.panten@sygel.es>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/"
"OCA-account-financial-tools-8-0/language/es/)\n"
"POT-Creation-Date: 2020-03-20 01:10+0100\n"
"PO-Revision-Date: 2020-03-20 01:13+0100\n"
"Last-Translator: Carlos Dauden <carlos.dauden@tecnativa.com>\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"
"X-Generator: Poedit 1.8.7.1\n"
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset.py:0
@ -69,9 +68,7 @@ msgstr "Añada aquí una nota interna..."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset_compute__date_end
msgid "All depreciation lines prior to this date will be automatically posted"
msgstr ""
"Todas las líneas de amortización anteriores a esta fecha serán publicadas "
"automáticamente"
msgstr "Todas las líneas de amortización anteriores a esta fecha serán publicadas automáticamente"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_line__amount
@ -240,22 +237,14 @@ msgstr "Activos que han sido eliminados"
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__asset_product_item
msgid ""
"By default during the validation of an invoice, an asset is created by "
"invoice line as long as an accounting entry is created by invoice line. With "
"this setting, an accounting entry will be created by product item. So, there "
"will be an asset by product item."
msgstr ""
"Por defecto durante la validación de una factura se crea un activo por línea "
"de factura así como un apunte por línea de factura. Con esta configuración, "
"se creará un apunte contable por artículo del producto. Por lo tanto habrá "
"un activo por producto."
msgid "By default during the validation of an invoice, an asset is created by invoice line as long as an accounting entry is created by invoice line. With this setting, an accounting entry will be created by product item. So, there will be an asset by product item."
msgstr "Por defecto durante la validación de una factura se crea un activo por línea de factura así como un apunte por línea de factura. Con esta configuración, se creará un apunte contable por artículo del producto. Por lo tanto habrá un activo por producto."
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__days_calc
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_profile__days_calc
msgid "Calculate by days"
msgstr ""
msgstr "Calcular por días"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_compute_view_form
@ -266,70 +255,36 @@ msgstr "Cancelar"
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__open_asset
msgid ""
"Check this if you want to automatically confirm the assets of this profile "
"when created by invoices."
msgstr ""
"Valide si desea confirmar automáticamente los activos de esta categoría "
"cuando se crean desde las facturas."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__method
msgid ""
"Choose the method to use to compute the amount of depreciation lines.\n"
" * Linear: Calculated on basis of: Gross Value / Number of Depreciations\n"
" * Degressive: Calculated on basis of: Residual Value * Degressive Factor "
"* Degressive-Linear (only for Time Method = Year): Degressive becomes linear "
"when the annual linear depreciation exceeds the annual degressive "
"depreciation"
msgstr ""
"Escoja el método a utilizar para calcular el importe de las líneas de "
"amortización:\n"
"* Lineal: Calculado según: Valor bruto / Nº de amortizaciones\n"
"* Decreciente: Calculado según: Valor residual * Factor decreciente\n"
"* Decreciente-Lineal (sólo para método de tiempo = año): Lo decreciente se "
"convierte en lineal cuando la amortización lineal decreciente exceda la "
"amortización decreciente anual"
msgid "Check this if you want to automatically confirm the assets of this profile when created by invoices."
msgstr "Marque esto si desea confirmar automáticamente los activos de esta categoría cuando se crean desde las facturas."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__method_time
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__method_time
msgid ""
"Choose the method to use to compute the dates and number of depreciation "
"lines.\n"
"Choose the method to use to compute the dates and number of depreciation lines.\n"
" * Number of Years: Specify the number of years for the depreciation.\n"
msgstr ""
"Escoja el método a usar para calcular las fechas y número de líneas de "
"amortización.\n"
"Escoja el método a usar para calcular las fechas y número de líneas de amortización.\n"
"* Número de años: Especifica el número de años para la amortización.\n"
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__method
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__method
msgid ""
"Choose the method to use to compute the depreciation lines.\n"
" * Linear: Calculated on basis of: Depreciation Base / Number of "
"Depreciations. Depreciation Base = Purchase Value - Salvage Value.\n"
" * Linear-Limit: Linear up to Salvage Value. Depreciation Base = Purchase "
"Value.\n"
" * Linear: Calculated on basis of: Depreciation Base / Number of Depreciations. Depreciation Base = Purchase Value - Salvage Value.\n"
" * Linear-Limit: Linear up to Salvage Value. Depreciation Base = Purchase Value.\n"
" * Degressive: Calculated on basis of: Residual Value * Degressive Factor.\n"
" * Degressive-Linear (only for Time Method = Year): Degressive becomes "
"linear when the annual linear depreciation exceeds the annual degressive "
"depreciation.\n"
" * Degressive-Limit: Degressive up to Salvage Value. The Depreciation Base "
"is equal to the asset value."
" * Degressive-Linear (only for Time Method = Year): Degressive becomes linear when the annual linear depreciation exceeds the annual degressive depreciation.\n"
" * Degressive-Limit: Degressive up to Salvage Value. The Depreciation Base is equal to the asset value."
msgstr ""
"Seleccione el método para calcular las líneas de amortización.\n"
" * Lineal: Calculado en base a: Base Amortizable / Número de "
"Amortizaciones. Base Amortizable = Valor de Compra - Valor Residual.\n"
" * Lineal-Limit: Lineal hasta el Valor Residual. Base Amortizable = Valor "
"de Compra.\n"
" * Decreciente: Calculado en base a: Valor Residual * Coeficiente de "
"Amortización.\n"
" * Decreciente-Lineal (solo para Periodo de Tiempo = Año): Decreciente se "
"convierte en lineal cuando la amortización lineal anual supera la "
"amortización decreciente anual.\n"
" * Decreciente-Limit: Decreciente hasta el Valor Residual. La Base "
"Amortizable es igual al valor del activo."
" * Lineal: Calculado en base a: Base Amortizable / Número de Amortizaciones. Base Amortizable = Valor de Compra - Valor Residual.\n"
" * Lineal-Limit: Lineal hasta el Valor de rescate. Base Amortizable = Valor de Compra.\n"
" * Decreciente: Calculado en base a: Valor Residual * Coeficiente de Amortización.\n"
" * Decreciente-Lineal (solo para Periodo de Tiempo = Año): Decreciente se convierte en lineal cuando la amortización lineal anual supera la amortización decreciente anual.\n"
" * Decreciente-Limit: Decreciente hasta el Valor de rescate. La Base Amortizable es igual al valor del activo."
#. module: account_asset_management
#: model:ir.model.fields.selection,name:account_asset_management.selection__account_asset__state__close
@ -340,7 +295,7 @@ msgstr "Cerrar"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_group__code
msgid "Code"
msgstr ""
msgstr "Código"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__company_id
@ -414,7 +369,7 @@ msgstr "Crear asiento"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_profile__asset_product_item
msgid "Create an asset by product item"
msgstr ""
msgstr "Crear un activo por artículo de producto"
#. module: account_asset_management
#: code:addons/account_asset_management/wizard/account_asset_compute.py:0
@ -442,7 +397,7 @@ msgstr "Creado por"
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_recompute_trigger__create_date
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_remove__create_date
msgid "Created on"
msgstr "Creado en"
msgstr "Creado el"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_compute__date_end
@ -453,21 +408,17 @@ msgstr "Fecha"
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset_recompute_trigger__date_trigger
msgid "Date of the event triggering the need to recompute the Asset Tables."
msgstr ""
"Fecha de disparo del evento de la necesidad de recálculo de las tablas de "
"activo."
msgstr "Fecha de disparo del evento de la necesidad de recálculo de las tablas de activo."
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_line__line_days
msgid "Days"
msgstr ""
msgstr "Dias"
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_account__asset_profile_id
msgid "Default Asset Profile when creating invoice lines with this account."
msgstr ""
"Categoría de activo por defecto cuando se creen líneas de factura con esta "
"cuenta."
msgstr "Categoría de activo por defecto cuando se creen líneas de factura con esta cuenta."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_profile.py:0
@ -479,7 +430,7 @@ msgstr "Decreciente"
#: code:addons/account_asset_management/models/account_asset_profile.py:0
#, python-format
msgid "Degressive up to Salvage Value"
msgstr ""
msgstr "Regresivo hasta valor de rescate"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__method_progress_factor
@ -503,7 +454,7 @@ msgstr "Decreciente-Lineal sólo está soportado para el método de tiempo = Añ
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
msgid "Delete Move"
msgstr "Asiento de eliminación"
msgstr "Borrar asiento"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_profile__account_expense_depreciation_id
@ -594,7 +545,7 @@ msgstr "Activos borrador"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__method_end
msgid "Ending Date"
msgstr "Fecha final"
msgstr "Fecha de finalización"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__account_move_line_ids
@ -609,6 +560,9 @@ msgid ""
"\n"
"%s"
msgstr ""
"Error mientras se procesaba activo '%s': \n"
"\n"
"%s"
#. module: account_asset_management
#: model:ir.model,name:account_asset_management.model_account_fiscal_year
@ -672,13 +626,11 @@ msgstr "ID"
#: model:ir.model.fields,help:account_asset_management.field_account_asset__use_leap_years
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__use_leap_years
msgid ""
"If not set, the system will distribute evenly the amount to amortize across "
"the years, based on the number of years. So the amount per year will be the "
"depreciation base / number of years.\n"
" If set, the system will consider if the current year is a leap year. The "
"amount to depreciate per year will be calculated as depreciation base / "
"(depreciation end date - start date + 1) * days in the current year."
"If not set, the system will distribute evenly the amount to amortize across the years, based on the number of years. So the amount per year will be the depreciation base / number of years.\n"
" If set, the system will consider if the current year is a leap year. The amount to depreciate per year will be calculated as depreciation base / (depreciation end date - start date + 1) * days in the current year."
msgstr ""
"Si no se marca, el sistema distribuirá de manera uniforme el importe a amortizar a lo largo de los años, en función de la cantidad de años. Por lo tanto, la cantidad por año será la base de depreciación / número de años.\n"
" Si se marca, el sistema considerará si el año actual es bisiesto. El importe a amortizar por año se calculará como base de amortización / (fecha final de la amortización - fecha inicial + 1) * días en el año actual."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset.py:0
@ -686,25 +638,11 @@ msgstr ""
msgid "Illegal value %s in asset.method."
msgstr "Valor ilegal %s en asset.method."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__prorata
msgid ""
"Indicates that the first depreciation entry for this asset has to be done "
"from the depreciation start date instead of the first day of the fiscal year."
msgstr ""
"Indica que el primer asiento de amortización para este activo tiene que ser "
"realizado desde la fecha de inicio de la amortización en lugar del primer "
"día del ejercicio fiscal."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__prorata
msgid ""
"Indicates that the first depreciation entry for this asset have to be done "
"from the depreciation start date instead of the first day of the fiscal year."
msgstr ""
"Indica que el primer asiento de amortización para este activo tiene que ser "
"realizado desde la fecha de inicio de la amortización en lugar del primer "
"día del ejercicio fiscal."
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__prorata
msgid "Indicates that the first depreciation entry for this asset has to be done from the depreciation start date instead of the first day of the fiscal year."
msgstr "Indica que el primer asiento de amortización para este activo tiene que ser realizado desde la fecha de inicio de la amortización en lugar del primer día del ejercicio fiscal."
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
@ -790,7 +728,7 @@ msgstr "Lineal"
#: code:addons/account_asset_management/models/account_asset_profile.py:0
#, python-format
msgid "Linear up to Salvage Value"
msgstr "Lineal hasta Valor Residual"
msgstr "Lineal hasta Valor de rescate"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_profile__account_min_value_id
@ -838,10 +776,9 @@ msgstr "Número de años"
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_profile.py:0
#, fuzzy, python-format
#| msgid "Number of Years"
#, python-format
msgid "Number of Years or end date"
msgstr "Número de años"
msgstr "Número de años o fecha de finalización"
#. module: account_asset_management
#: model:ir.model.fields.selection,name:account_asset_management.selection__account_asset_recompute_trigger__state__open
@ -855,10 +792,8 @@ msgstr "Otra información"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_group__parent_id
#, fuzzy
#| msgid "Parent Asset"
msgid "Parent Asset Group"
msgstr "Activo padre"
msgstr "Grupo de activo padre"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_group__parent_path
@ -901,7 +836,7 @@ msgstr "Línea de amortización previa"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_search
msgid "Profile"
msgstr ""
msgstr "Perfil"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__prorata
@ -939,24 +874,17 @@ msgstr "Política para el asiento de eliminación"
#: model:ir.model.fields,help:account_asset_management.field_account_asset_remove__posting_regime
msgid ""
"Removal Entry Policy \n"
" * Residual Value: The non-depreciated value will be posted on the "
"'Residual Value Account' \n"
" * Gain/Loss on Sale: The Gain or Loss will be posted on the 'Plus-Value "
"Account' or 'Min-Value Account' "
" * Residual Value: The non-depreciated value will be posted on the 'Residual Value Account' \n"
" * Gain/Loss on Sale: The Gain or Loss will be posted on the 'Plus-Value Account' or 'Min-Value Account' "
msgstr ""
"Política para el asiento de eliminación\n"
"* Valor residual: El valor no amortizado será llevado a la \"Cuenta de valor "
"residual\"\n"
"* Ganancia/Pérdida en la venta: La ganancia o pérdida será llevada a la "
"\"Cuenta para ganancia de valor\" o a la \"Cuenta para pérdida de valor\""
"* Valor residual: El valor no amortizado será llevado a la \"Cuenta de valor residual\"\n"
"* Ganancia/Pérdida en la venta: La ganancia o pérdida será llevada a la \"Cuenta para ganancia de valor\" o a la \"Cuenta para pérdida de valor\""
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset_remove__date_remove
msgid ""
"Removal date must be after the last posted entry in case of early removal"
msgstr ""
"La fecha de eliminación debe ser posterior a la del último asiento asentado "
"en caso de eliminación temprana"
msgid "Removal date must be after the last posted entry in case of early removal"
msgstr "La fecha de eliminación debe ser posterior a la del último asiento asentado en caso de eliminación temprana"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
@ -991,7 +919,7 @@ msgstr "Cuenta de valor residual"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_compute_view_form_result
msgid "Results :"
msgstr ""
msgstr "Resultados:"
#. module: account_asset_management
#: model:ir.model.fields.selection,name:account_asset_management.selection__account_asset__state__open
@ -1007,7 +935,7 @@ msgstr "Valor de venta"
#. module: account_asset_management
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__salvage_value
msgid "Salvage Value"
msgstr "Valor de salvaguarda"
msgstr "Valor de rescate"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_group_view_search
@ -1021,12 +949,8 @@ msgstr "Buscar categoría de activo"
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset_line__init_entry
msgid ""
"Set this flag for entries of previous fiscal years for which Odoo has not "
"generated accounting entries."
msgstr ""
"Marque esta casilla para las entradas de ejercicios fiscales anteriores para "
"los que no se ha generado asientos contables."
msgid "Set this flag for entries of previous fiscal years for which Odoo has not generated accounting entries."
msgstr "Marque esta casilla para las entradas de ejercicios fiscales anteriores para los que no se ha generado asientos contables."
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
@ -1056,19 +980,14 @@ msgstr "Estado"
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset.py:0
#, python-format
msgid ""
"The '_compute_year_amount' method is only intended for Time Method 'Number "
"of Years."
msgstr ""
msgid "The '_compute_year_amount' method is only intended for Time Method 'Number of Years'."
msgstr "El método '_compute_year_amount' solo está destinado al Método de tiempo 'Número de años'."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_account.py:0
#, python-format
msgid ""
"The Asset Account defined in the Asset Profile must be equal to the account."
msgstr ""
"La cuenta de activo definida en la categoría de activo debe ser igual a la "
"cuenta."
msgid "The Asset Account defined in the Asset Profile must be equal to the account."
msgstr "La cuenta de activo definida en la categoría de activo debe ser igual a la cuenta."
#. module: account_asset_management
#: code:addons/account_asset_management/wizard/account_asset_remove.py:0
@ -1080,27 +999,21 @@ msgstr "El valor de venta debe ser positivo."
#: code:addons/account_asset_management/models/account_asset.py:0
#, python-format
msgid "The Start Date must precede the Ending Date."
msgstr ""
msgstr "La fecha de inicio debe ser anterior a la fecha de finalización."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset.py:0
#, python-format
msgid ""
"The duration of the asset conflicts with the posted depreciation table entry "
"dates."
msgstr ""
"La duración del activo entra en conflicto con la fechas de asiento asentadas "
"de la tabla de amortización."
msgid "The duration of the asset conflicts with the posted depreciation table entry dates."
msgstr "La duración del activo entra en conflicto con la fechas de asiento asentadas de la tabla de amortización."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__salvage_value
msgid ""
"The estimated value that an asset will realize upon its sale at the end of "
"its useful life.\n"
"The estimated value that an asset will realize upon its sale at the end of its useful life.\n"
"This value is used to determine the depreciation amounts."
msgstr ""
"El valor estimado que un activo tendrá hasta su venta al final de su vida "
"útil.\n"
"El valor estimado que un activo tendrá hasta su venta al final de su vida útil.\n"
"Este valor se usará para determinar los importes de amortización."
#. module: account_asset_management
@ -1113,29 +1026,23 @@ msgstr "El número de años necesario para amortización su activo"
#: code:addons/account_asset_management/wizard/account_asset_remove.py:0
#, python-format
msgid "The removal date must be after the last depreciation date."
msgstr ""
"La fecha de eliminación debe ser después de la última fecha de amortización."
msgstr "La fecha de eliminación debe ser después de la última fecha de amortización."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__depreciation_base
#: model:ir.model.fields,help:account_asset_management.field_account_asset_line__depreciation_base
#, fuzzy
msgid ""
"This amount represent the depreciation base of the asset (Purchase Value - "
"Salvage Value."
msgstr "Este importe representa el valor inicial del activo."
msgid "This amount represent the depreciation base of the asset (Purchase Value - Salvage Value)."
msgstr "Este importe representa la base de amortización del activo (Valor de compra - Valor de rescate)."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__purchase_value
#, fuzzy
msgid ""
"This amount represent the initial value of the asset.\n"
"The Depreciation Base is calculated as follows:\n"
"Purchase Value - Salvage Value."
msgstr ""
"\n"
"El valor del activo se calcula de la siguiente forma:\n"
"Valor de compra - valor de salvaguarda."
"Valor de compra - valor de rescate."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_move.py:0
@ -1156,10 +1063,8 @@ msgstr "Total haber"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
#, fuzzy
#| msgid "Total Debit"
msgid "Total Days"
msgstr "Total debe"
msgstr "Días totales"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
@ -1180,21 +1085,18 @@ msgstr "Tipo"
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset__use_leap_years
#: model:ir.model.fields,field_description:account_asset_management.field_account_asset_profile__use_leap_years
msgid "Use leap years"
msgstr ""
msgstr "Use años bisiestos"
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__days_calc
#: model:ir.model.fields,help:account_asset_management.field_account_asset_profile__days_calc
#, fuzzy
#| msgid "The number of years needed to depreciate your asset"
msgid "Use number of days to calculate depreciation amount"
msgstr "El número de años necesario para amortización su activo"
msgstr "Usar número de días para calcular el importe de la amortización"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_compute_view_form_result
#, fuzzy
msgid "View Asset Moves"
msgstr "Asientos de activos creados"
msgstr "Ver asientos de activos"
#. module: account_asset_management
#: model_terms:ir.ui.view,arch_db:account_asset_management.account_asset_view_form
@ -1206,20 +1108,14 @@ msgstr "Ver asiento"
#: model:ir.model.fields,help:account_asset_management.field_account_asset_line__parent_state
msgid ""
"When an asset is created, the status is 'Draft'.\n"
"If the asset is confirmed, the status goes in 'Running' and the depreciation "
"lines can be posted to the accounting.\n"
"If the last depreciation line is posted, the asset goes into the 'Close' "
"status.\n"
"When the removal entries are generated, the asset goes into the 'Removed' "
"status."
"If the asset is confirmed, the status goes in 'Running' and the depreciation lines can be posted to the accounting.\n"
"If the last depreciation line is posted, the asset goes into the 'Close' status.\n"
"When the removal entries are generated, the asset goes into the 'Removed' status."
msgstr ""
"Cuando se crea un activo, el estado es 'Borrador'.\n"
"Si el activo es confirmado, el estado pasa a 'En ejecución' y las líneas de "
"amortización pueden ser creadas en la contabilizada.\n"
"Si se crea la última línea de amortización, el activo pasa a estado "
"'Cerrado'.\n"
"Cuando se generan los asientos de eliminación, el activo pasa a estado "
"'Eliminado'."
"Si el activo es confirmado, el estado pasa a 'En ejecución' y las líneas de amortización pueden ser creadas en la contabilizada.\n"
"Si se crea la última línea de amortización, el activo pasa a estado 'Cerrado'.\n"
"Cuando se generan los asientos de eliminación, el activo pasa a estado 'Eliminado'."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_profile.py:0
@ -1257,299 +1153,70 @@ msgstr "Sólo puede eliminar activos en estado borrador."
#. module: account_asset_management
#: code:addons/account_asset_management/wizard/account_asset_remove.py:0
#, python-format
msgid ""
"You can't make an early removal if all the depreciation lines for previous "
"periods are not posted."
msgstr ""
"No puede realizar una eliminación temprana si todos los asientos de las "
"líneas de amortización para los periodos previos no están generados."
msgid "You can't make an early removal if all the depreciation lines for previous periods are not posted."
msgstr "No puede realizar una eliminación temprana si todos los asientos de las líneas de amortización para los periodos previos no están generados."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_line.py:0
#, python-format
msgid ""
"You cannot change a depreciation line with an associated accounting entry."
msgstr ""
"No puede cambiar una línea de amortización con un asiento contable asociado."
msgid "You cannot change a depreciation line with an associated accounting entry."
msgstr "No puede cambiar una línea de amortización con un asiento contable asociado."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_move.py:0
#, python-format
msgid ""
"You cannot change an accounting entry linked to an asset depreciation line."
msgstr ""
"No puede cambiar un asiento contable enlazado a una línea de amortización de "
"un activo."
msgid "You cannot change an accounting entry linked to an asset depreciation line."
msgstr "No puede cambiar un asiento contable enlazado a una línea de amortización de un activo."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_move.py:0
#, python-format
msgid ""
"You cannot change an accounting item linked to an asset depreciation line."
msgstr ""
"No puede cambiar un apunte contable enlazado a una línea de amortización de "
"activo."
msgid "You cannot change an accounting item linked to an asset depreciation line."
msgstr "No puede cambiar un apunte contable enlazado a una línea de amortización de activo."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset.py:0
#, fuzzy, python-format
#, python-format
msgid "You cannot change the profile of an asset with accounting entries."
msgstr ""
"No puede cambiar la categoría de un activo que tiene asientos contables."
msgstr "No puede cambiar la categoría de un activo con asientos contables."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_line.py:0
#, python-format
msgid ""
"You cannot delete a depreciation line with an associated accounting entry."
msgid "You cannot delete a depreciation line with an associated accounting entry."
msgstr "No puede eliminar una línea de amortización con un asiento enlazado."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset.py:0
#, python-format
msgid "You cannot delete an asset that contains posted depreciation lines."
msgstr ""
"No puede eliminar un activo que contenga líneas de amortización asentadas."
msgstr "No puede eliminar un activo que contenga líneas de amortización asentadas."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_line.py:0
#, fuzzy, python-format
#, python-format
msgid "You cannot remove an asset line of type 'Depreciation Base'."
msgstr "No puede eliminar una línea de activo de tipo 'Valor del activo'."
msgstr "No puede eliminar una linea de amortización de tipo 'Base Amortización'."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_line.py:0
#, python-format
msgid ""
"You cannot set the 'Initial Balance Entry' flag on a depreciation line with "
"prior posted entries."
msgstr ""
"No puede establecer la casilla 'Asiento de saldo inicial' en una línea de "
"amortización con asientos anteriores ya generados."
msgid "You cannot set the 'Initial Balance Entry' flag on a depreciation line with prior posted entries."
msgstr "No puede establecer la casilla 'Asiento de saldo inicial' en una línea de amortización con asientos anteriores ya generados."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_line.py:0
#, fuzzy, python-format
#, python-format
msgid "You cannot set the Asset Start Date after already posted entries."
msgstr ""
"No puede establecer la fecha de la línea de amortización anterior a los "
"asientos ya generados."
msgstr "No puede establecer la fecha de inicio posterior a amortizaciones ya contabilizadas."
#. module: account_asset_management
#: code:addons/account_asset_management/models/account_asset_line.py:0
#, python-format
msgid ""
"You cannot set the date on a depreciation line prior to already posted "
"entries."
msgstr ""
"No puede establecer la fecha de la línea de amortización anterior a los "
"asientos ya generados."
msgid "You cannot set the date on a depreciation line prior to already posted entries."
msgstr "No puede establecer la fecha de la línea de amortización anterior a los asientos ya generados."
#. module: account_asset_management
#: model:ir.model.fields,help:account_asset_management.field_account_asset__date_start
msgid ""
"You should manually add depreciation lines with the depreciations of "
"previous fiscal years if the Depreciation Start Date is different from the "
"date for which accounting entries need to be generated."
msgstr ""
"Debe añadir manualmente las líneas de amortización con las amortizaciones de "
"ejercicios fiscales anteriores si la fecha de inicio de amortización es "
"diferente de la fecha para la que loas asientos contables necesitan ser "
"generados."
#~ msgid "Assets management (OCA)"
#~ msgstr "Gestión de activos (OCA)"
#~ msgid ""
#~ "Complete this field when selling an asset in order to facilitate the "
#~ "creation of the asset removal accounting entries via the asset 'Removal' "
#~ "button"
#~ msgstr ""
#~ "Complete este campo cuando venda un activo para facilitar la creación de "
#~ "los asientos de eliminación del activo vía el botón de 'Eliminación' del "
#~ "activo"
#~ msgid "Invoice"
#~ msgstr "Factura"
#~ msgid "Invoice Line"
#~ msgstr "Línea de factura"
#, fuzzy
#~ msgid ""
#~ "This allows you to manage the assets owned by a company\n"
#~ " or a person. It keeps track of the depreciation occurred\n"
#~ " on those assets, and creates account move for those\n"
#~ " depreciation lines.\n"
#~ " This installs the module account_asset_management."
#~ msgstr ""
#~ "Esto le permite gestionar los activos propiedad de una compañía o "
#~ "persona. Establece un seguimiento de las amortizaciones ocurridas en "
#~ "estos activos, y crea asientos contables para las líneas de "
#~ "amortización.\n"
#~ "Esto instala el módulo account_asset_management."
#~ msgid "Child Assets"
#~ msgstr "Activos hijos"
#~ msgid "Error ! You can not create recursive assets."
#~ msgstr "Error. No puede crear activos recursivos."
#~ msgid "Normal"
#~ msgstr "Normal"
#~ msgid "View"
#~ msgstr "Vista"
#~ msgid "No Fiscal Year defined."
#~ msgstr "No se ha definido el Ejercicio Fiscal."
#~ msgid ""
#~ "You cannot compute a depreciation table for an asset starting in an "
#~ "undefined future fiscal year.\n"
#~ "Please correct the start date for asset '%s'."
#~ msgstr ""
#~ "No puede calcular una tabla de amortización para un activo que comienza "
#~ "en un ejercicio fiscal futuro no definido.\n"
#~ "Corrija por favor la fecha de inicio del activo '%s'."
#~ msgid "Account Entry"
#~ msgstr "Asiento contable"
#~ msgid "Parent Right"
#~ msgstr "Padre derecho"
#~ msgid "# of Depreciation Lines"
#~ msgstr "# de líneas de amortización"
#~ msgid ""
#~ "<p>\n"
#~ " From this report, you can have an overview on all "
#~ "depreciations. The\n"
#~ " tool search can also be used to personalise your Assets reports "
#~ "and\n"
#~ " so, match this analysis to your needs;\n"
#~ " </p>\n"
#~ " "
#~ msgstr ""
#~ "<p>\n"
#~ "Desde este informe, puede tener una visión global de todas sus "
#~ "amortizaciones. Puede\n"
#~ "utilizarse también la herramienta de búsqueda para personalizar sus "
#~ "informes de activos y,\n"
#~ "de esta forma, adaptar este análisis a sus necesidades;\n"
#~ "</p>"
#~ msgid "Amount of Depreciation Lines"
#~ msgstr "Importe de las líneas de amortización"
#~ msgid ""
#~ "Asset '%s' contains unposted lines prior to the selected period.\n"
#~ "Please post these entries first !"
#~ msgstr ""
#~ "El activo '%s' contiene líneas no asentadas previas al periodo "
#~ "seleccionado.\n"
#~ "Asiente por favor primero estos asientos."
#~ msgid "Asset Categories"
#~ msgstr "Categorías de activo"
#~ msgid "Asset Category"
#~ msgstr "Categoría de activo"
#~ msgid "Asset Durations to Modify"
#~ msgstr "Duraciones de activo a modificar"
#~ msgid "Asset Hierarchy"
#~ msgstr "Jerarquía de activos"
#~ msgid "Asset History"
#~ msgstr "Histórico del activo"
#~ msgid "Asset Value"
#~ msgstr "Valor del activo"
#~ msgid "Asset category"
#~ msgstr "Categoría del activo"
#~ msgid "Asset history"
#~ msgstr "Histórico del activo"
#~ msgid "Assets Analysis"
#~ msgstr "Análisis de activos"
#~ msgid "Assets in Running state"
#~ msgstr "Activos en ejecucción"
#~ msgid "Category"
#~ msgstr "Categoría"
#~ msgid "Change Duration"
#~ msgstr "Cambiar duración"
#~ msgid ""
#~ "Choose the period for which you want to automatically post the "
#~ "depreciation lines of running assets"
#~ msgstr ""
#~ "Escoja el periodo para el que desea asentar automáticamente las líneas de "
#~ "amortización para los activos en ejecución"
#~ msgid "Date of depreciation"
#~ msgstr "Fecha de amortización"
#~ msgid "Ending date"
#~ msgstr "Fecha final"
#~ msgid "Error!"
#~ msgstr "¡Error!"
#~ msgid "Extended Filters..."
#~ msgstr "Filtros extendidos..."
#~ msgid "Force Period"
#~ msgstr "Forzar periodo"
#~ msgid "History name"
#~ msgstr "Nombre del historial"
#~ msgid "Illegal value %s in asset.method_period."
#~ msgstr "Valor ilegal %s en asset.method_period."
#~ msgid "Invalid action!"
#~ msgstr "Acción no válida."
#~ msgid "Keep empty to use the period of the removal ate."
#~ msgstr "Dejar vacío para usar el periodo de la fecha de eliminación."
#~ msgid "Modify"
#~ msgstr "Modificar"
#~ msgid "Modify Asset"
#~ msgstr "Modificar activo"
#~ msgid "Number of Depreciations/Years"
#~ msgstr "Número de amortizaciones/Años"
#~ msgid "Period"
#~ msgstr "Período"
#~ msgid "Posted Amount"
#~ msgstr "Importe asentado"
#~ msgid "Posted depreciation lines"
#~ msgstr "Líneas de amortización asentadas"
#~ msgid "Programming Error!"
#~ msgstr "Error de programación"
#~ msgid "Unposted Amount"
#~ msgstr "Importe no asentado"
#~ msgid "User"
#~ msgstr "Usuario"
#~ msgid "onchange_account_id(account_id)"
#~ msgstr "onchange_account_id(account_id)"
#~ msgid "or"
#~ msgstr "o"
msgid "You should manually add depreciation lines with the depreciations of previous fiscal years if the Depreciation Start Date is different from the date for which accounting entries need to be generated."
msgstr "Debe añadir manualmente las líneas de amortización con las amortizaciones de ejercicios fiscales anteriores si la fecha de inicio de amortización es diferente de la fecha para la cual se deben generar asientos contables."

View File

@ -17,6 +17,12 @@ from odoo.osv import expression
_logger = logging.getLogger(__name__)
READONLY_STATES = {
"open": [("readonly", True)],
"close": [("readonly", True)],
"removed": [("readonly", True)],
}
class DummyFy(object):
def __init__(self, *args, **argv):
@ -39,23 +45,12 @@ class AccountAsset(models.Model):
move_line_check = fields.Boolean(
compute="_compute_move_line_check", string="Has accounting entries"
)
name = fields.Char(
string="Asset Name",
required=True,
readonly=True,
states={"draft": [("readonly", False)]},
)
code = fields.Char(
string="Reference",
size=32,
readonly=True,
states={"draft": [("readonly", False)]},
)
name = fields.Char(string="Asset Name", required=True, states=READONLY_STATES,)
code = fields.Char(string="Reference", size=32, states=READONLY_STATES,)
purchase_value = fields.Float(
string="Purchase Value",
required=True,
readonly=True,
states={"draft": [("readonly", False)]},
states=READONLY_STATES,
help="This amount represent the initial value of the asset."
"\nThe Depreciation Base is calculated as follows:"
"\nPurchase Value - Salvage Value.",
@ -63,8 +58,7 @@ class AccountAsset(models.Model):
salvage_value = fields.Float(
string="Salvage Value",
digits="Account",
readonly=True,
states={"draft": [("readonly", False)]},
states=READONLY_STATES,
help="The estimated value that an asset will realize upon "
"its sale at the end of its useful life.\n"
"This value is used to determine the depreciation amounts.",
@ -75,7 +69,7 @@ class AccountAsset(models.Model):
string="Depreciation Base",
store=True,
help="This amount represent the depreciation base "
"of the asset (Purchase Value - Salvage Value.",
"of the asset (Purchase Value - Salvage Value).",
)
value_residual = fields.Float(
compute="_compute_depreciation",
@ -94,12 +88,14 @@ class AccountAsset(models.Model):
comodel_name="account.asset.profile",
string="Asset Profile",
change_default=True,
readonly=True,
required=True,
states={"draft": [("readonly", False)]},
states=READONLY_STATES,
)
group_ids = fields.Many2many(
comodel_name="account.asset.group",
compute="_compute_group_ids",
readonly=False,
store=True,
relation="account_asset_group_rel",
column1="asset_id",
column2="group_id",
@ -107,9 +103,8 @@ class AccountAsset(models.Model):
)
date_start = fields.Date(
string="Asset Start Date",
readonly=True,
required=True,
states={"draft": [("readonly", False)]},
states=READONLY_STATES,
help="You should manually add depreciation lines "
"with the depreciations of previous fiscal years "
"if the Depreciation Start Date is different from the date "
@ -138,33 +133,35 @@ class AccountAsset(models.Model):
)
active = fields.Boolean(default=True)
partner_id = fields.Many2one(
comodel_name="res.partner",
string="Partner",
readonly=True,
states={"draft": [("readonly", False)]},
comodel_name="res.partner", string="Partner", states=READONLY_STATES,
)
method = fields.Selection(
selection=lambda self: self.env["account.asset.profile"]._selection_method(),
string="Computation Method",
required=True,
readonly=True,
states={"draft": [("readonly", False)]},
default="linear",
help="Choose the method to use to compute "
"the amount of depreciation lines.\n"
compute="_compute_method",
readonly=False,
store=True,
states=READONLY_STATES,
help="Choose the method to use to compute the depreciation lines.\n"
" * Linear: Calculated on basis of: "
"Gross Value / Number of Depreciations\n"
"Depreciation Base / Number of Depreciations. "
"Depreciation Base = Purchase Value - Salvage Value.\n"
" * Linear-Limit: Linear up to Salvage Value. "
"Depreciation Base = Purchase Value.\n"
" * Degressive: Calculated on basis of: "
"Residual Value * Degressive Factor"
"Residual Value * Degressive Factor.\n"
" * Degressive-Linear (only for Time Method = Year): "
"Degressive becomes linear when the annual linear "
"depreciation exceeds the annual degressive depreciation",
"depreciation exceeds the annual degressive depreciation.\n"
" * Degressive-Limit: Degressive up to Salvage Value. "
"The Depreciation Base is equal to the asset value.",
)
method_number = fields.Integer(
string="Number of Years",
readonly=True,
states={"draft": [("readonly", False)]},
default=5,
compute="_compute_method_number",
readonly=False,
store=True,
states=READONLY_STATES,
help="The number of years needed to depreciate your asset",
)
method_period = fields.Selection(
@ -172,47 +169,52 @@ class AccountAsset(models.Model):
"account.asset.profile"
]._selection_method_period(),
string="Period Length",
required=True,
readonly=True,
states={"draft": [("readonly", False)]},
default="year",
compute="_compute_method_period",
readonly=False,
store=True,
states=READONLY_STATES,
help="Period length for the depreciation accounting entries",
)
method_end = fields.Date(
string="Ending Date", readonly=True, states={"draft": [("readonly", False)]}
string="Ending Date",
compute="_compute_method_end",
readonly=False,
store=True,
states=READONLY_STATES,
)
method_progress_factor = fields.Float(
string="Degressive Factor",
readonly=True,
states={"draft": [("readonly", False)]},
default=0.3,
compute="_compute_method_progress_factor",
readonly=False,
store=True,
states=READONLY_STATES,
)
method_time = fields.Selection(
selection=lambda self: self.env[
"account.asset.profile"
]._selection_method_time(),
string="Time Method",
required=True,
readonly=True,
states={"draft": [("readonly", False)]},
default="year",
compute="_compute_method_time",
readonly=False,
store=True,
states=READONLY_STATES,
help="Choose the method to use to compute the dates and "
"number of depreciation lines.\n"
" * Number of Years: Specify the number of years "
"for the depreciation.\n"
# " * Number of Depreciations: Fix the number of "
# "depreciation lines and the time between 2 depreciations.\n"
# " * Ending Date: Choose the time between 2 depreciations "
# "and the date the depreciations won't go beyond."
"for the depreciation.\n",
)
days_calc = fields.Boolean(
string="Calculate by days",
default=False,
compute="_compute_days_calc",
readonly=False,
store=True,
help="Use number of days to calculate depreciation amount",
)
use_leap_years = fields.Boolean(
string="Use leap years",
default=False,
compute="_compute_use_leap_years",
readonly=False,
store=True,
help="If not set, the system will distribute evenly the amount to "
"amortize across the years, based on the number of years. "
"So the amount per year will be the "
@ -224,19 +226,20 @@ class AccountAsset(models.Model):
)
prorata = fields.Boolean(
string="Prorata Temporis",
readonly=True,
states={"draft": [("readonly", False)]},
compute="_compute_prorrata",
readonly=False,
store=True,
states=READONLY_STATES,
help="Indicates that the first depreciation entry for this asset "
"have to be done from the depreciation start date instead "
"of the first day of the fiscal year.",
"has to be done from the depreciation start date instead of "
"the first day of the fiscal year.",
)
depreciation_line_ids = fields.One2many(
comodel_name="account.asset.line",
inverse_name="asset_id",
string="Depreciation Lines",
copy=False,
readonly=True,
states={"draft": [("readonly", False)]},
states=READONLY_STATES,
)
company_id = fields.Many2one(
comodel_name="res.company",
@ -253,21 +256,23 @@ class AccountAsset(models.Model):
readonly=True,
)
account_analytic_id = fields.Many2one(
comodel_name="account.analytic.account", string="Analytic account"
comodel_name="account.analytic.account",
string="Analytic account",
compute="_compute_account_analytic_id",
readonly=False,
store=True,
)
@api.model
def _default_company_id(self):
return self.env.company
@api.depends("depreciation_line_ids.move_id")
def _compute_move_line_check(self):
for asset in self:
move_line_check = False
for line in asset.depreciation_line_ids:
if line.move_id:
move_line_check = True
break
asset.move_line_check = move_line_check
asset.move_line_check = bool(
asset.depreciation_line_ids.filtered("move_id")
)
@api.depends("purchase_value", "salvage_value", "method")
def _compute_depreciation_base(self):
@ -296,20 +301,93 @@ class AccountAsset(models.Model):
depreciated = value_depreciated
asset.update({"value_residual": residual, "value_depreciated": depreciated})
@api.depends("profile_id")
def _compute_group_ids(self):
for asset in self:
asset.group_ids = asset.profile_id.group_ids
@api.depends("profile_id")
def _compute_method(self):
for asset in self:
asset.method = asset.profile_id.method
@api.depends("profile_id", "method_end")
def _compute_method_number(self):
for asset in self:
if asset.method_end:
asset.method_number = 0
else:
asset.method_number = asset.profile_id.method_number
@api.depends("profile_id")
def _compute_method_period(self):
for asset in self:
asset.method_period = asset.profile_id.method_period
@api.depends("method_number")
def _compute_method_end(self):
for asset in self:
if asset.method_number:
asset.method_end = False
@api.depends("profile_id")
def _compute_method_progress_factor(self):
for asset in self:
asset.method_progress_factor = asset.profile_id.method_progress_factor
@api.depends("profile_id")
def _compute_method_time(self):
for asset in self:
asset.method_time = asset.profile_id.method_time
@api.depends("profile_id")
def _compute_days_calc(self):
for asset in self:
asset.days_calc = asset.profile_id.days_calc
@api.depends("profile_id")
def _compute_use_leap_years(self):
for asset in self:
asset.use_leap_years = asset.profile_id.use_leap_years
@api.depends("profile_id", "method_time")
def _compute_prorrata(self):
for asset in self:
if asset.method_time != "year":
asset.prorata = True
else:
asset.prorata = asset.profile_id.prorata
@api.depends("profile_id")
def _compute_account_analytic_id(self):
for asset in self:
asset.account_analytic_id = asset.profile_id.account_analytic_id
@api.constrains("method", "method_time")
def _check_method(self):
for asset in self:
if asset.method == "degr-linear" and asset.method_time != "year":
raise UserError(
_("Degressive-Linear is only supported for Time Method = " "Year.")
)
if self.filtered(
lambda a: a.method == "degr-linear" and a.method_time != "year"
):
raise UserError(
_("Degressive-Linear is only supported for Time Method = Year.")
)
@api.constrains("date_start", "method_end", "method_time")
def _check_dates(self):
for asset in self:
if asset.method_time == "end":
if asset.method_end <= asset.date_start:
raise UserError(_("The Start Date must precede the Ending Date."))
if self.filtered(
lambda a: a.method_time == "end" and a.method_end <= a.date_start
):
raise UserError(_("The Start Date must precede the Ending Date."))
@api.constrains("profile_id")
def _check_profile_change(self):
if self.depreciation_line_ids.filtered("move_id"):
raise UserError(
_(
"You cannot change the profile of an asset "
"with accounting entries."
)
)
@api.onchange("purchase_value", "salvage_value", "date_start", "method")
def _onchange_purchase_salvage_value(self):
@ -327,52 +405,8 @@ class AccountAsset(models.Model):
{"amount": self.depreciation_base, "line_date": self.date_start}
)
@api.onchange("profile_id")
def _onchange_profile_id(self):
for line in self.depreciation_line_ids:
if line.move_id:
raise UserError(
_(
"You cannot change the profile of an asset "
"with accounting entries."
)
)
profile = self.profile_id
if profile:
self.update(
{
"method": profile.method,
"method_number": profile.method_number,
"method_time": profile.method_time,
"method_period": profile.method_period,
"days_calc": profile.days_calc,
"use_leap_years": profile.use_leap_years,
"method_progress_factor": profile.method_progress_factor,
"prorata": profile.prorata,
"account_analytic_id": profile.account_analytic_id,
"group_ids": profile.group_ids,
}
)
@api.onchange("method_time")
def _onchange_method_time(self):
if self.method_time != "year":
self.prorata = True
@api.onchange("method_number")
def _onchange_method_number(self):
if self.method_number and self.method_end:
self.method_end = False
@api.onchange("method_end")
def _onchange_method_end(self):
if self.method_end and self.method_number:
self.method_number = 0
@api.model
def create(self, vals):
if vals.get("method_time") != "year" and not vals.get("prorata"):
vals["prorata"] = True
asset = super().create(vals)
if self.env.context.get("create_asset_from_move_line"):
# Trigger compute of depreciation_base
@ -381,9 +415,6 @@ class AccountAsset(models.Model):
return asset
def write(self, vals):
if vals.get("method_time"):
if vals["method_time"] != "year" and not vals.get("prorata"):
vals["prorata"] = True
res = super().write(vals)
for asset in self:
if self.env.context.get("asset_validate_from_write"):
@ -818,7 +849,7 @@ class AccountAsset(models.Model):
raise UserError(
_(
"The '_compute_year_amount' method is only intended for "
"Time Method 'Number of Years."
"Time Method 'Number of Years'."
)
)
year_amount_linear = self._get_amount_linear(

View File

@ -63,6 +63,7 @@ class AccountAssetLine(models.Model):
@api.depends("amount", "previous_id", "type")
def _compute_values(self):
processed_lines = self.browse()
dlines = self
if self.env.context.get("no_compute_asset_line_ids"):
# skip compute for lines in unlink
@ -93,6 +94,11 @@ class AccountAssetLine(models.Model):
remaining_value -= dl.amount
dl.depreciated_value = depreciated_value
dl.remaining_value = remaining_value
processed_lines |= dl
# Set unprocessed lines values
for line in self - processed_lines:
line.depreciated_value = 0.0
line.remaining_value = 0.0
@api.depends("move_id")
def _compute_move_check(self):

View File

@ -128,6 +128,9 @@ class AccountAssetProfile(models.Model):
)
prorata = fields.Boolean(
string="Prorata Temporis",
compute="_compute_prorrata",
readonly=False,
store=True,
help="Indicates that the first depreciation entry for this asset "
"has to be done from the depreciation start date instead of "
"the first day of the fiscal year.",
@ -173,18 +176,20 @@ class AccountAssetProfile(models.Model):
"""
return [("year", _("Number of Years or end date"))]
@api.constrains("method")
@api.constrains("method", "method_time")
def _check_method(self):
for profile in self:
if profile.method == "degr-linear" and profile.method_time != "year":
raise UserError(
_("Degressive-Linear is only supported for Time Method = " "Year.")
)
if self.filtered(
lambda a: a.method == "degr-linear" and a.method_time != "year"
):
raise UserError(
_("Degressive-Linear is only supported for Time Method = Year.")
)
@api.onchange("method_time")
def _onchange_method_time(self):
if self.method_time != "year":
self.prorata = True
@api.depends("method_time")
def _compute_prorrata(self):
for profile in self:
if profile.method_time != "year":
profile.prorata = True
@api.model
def create(self, vals):

View File

@ -121,12 +121,12 @@
string="Depreciation Dates"
colspan="2"
/>
<field name="method_time" />
<field name="method_time" required="1" />
<field
name="method_number"
attrs="{'invisible': [('method_time', 'not in', ['number', 'year'])], 'required': [('method_time', 'in', ['number', 'year'])]}"
/>
<field name="method_period" />
<field name="method_period" required="1" />
<field
name="method_end"
attrs="{'required': [('method_time', '=', 'end')], 'invisible': [('method_time', 'in', ['number'])]}"
@ -142,7 +142,7 @@
string="Depreciation Method"
colspan="2"
/>
<field name="method" />
<field name="method" required="1" />
<field
name="method_progress_factor"
attrs="{'invisible': [('method', 'in', ['linear', 'linear-limit'])], 'required': [('method', 'in', ['degressive', 'degr-linear', 'degr-limit'])]}"

View File

@ -35,6 +35,10 @@
/>
<field name="method_period" />
<field name="days_calc" />
<field
name="use_leap_years"
attrs="{'invisible': [('days_calc', '=', True)]}"
/>
</group>
<group string="Depreciation Method">
<field name="method" />