8fa0de5226
* account_asset: Do not loop on all the lines to search for one linked asset Before this change, the use of `mapped` on self did loop on all the move lines that are included in self to get the assets, what could be very costly for a simple write on a lot of move lines. As the goal is to raise an error only if at least one move is linked to an asset, we break the loop if the condition is fulfilled. * performance improvement * [RMV] - Remove useless dependency In 12.0 account_fiscal_year is a standard feature no need to depend on oca module account_fiscal_year
31 lines
958 B
Python
31 lines
958 B
Python
# Copyright 2009-2018 Noviat
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
{
|
|
'name': 'Assets Management',
|
|
'version': '12.0.1.0.0',
|
|
'license': 'AGPL-3',
|
|
'depends': [
|
|
'account',
|
|
],
|
|
'excludes': ['account_asset'],
|
|
'author': "Noviat,Odoo Community Association (OCA)",
|
|
'website': 'https://github.com/OCA/account-financial-tools',
|
|
'category': 'Accounting & Finance',
|
|
'data': [
|
|
'security/account_asset_security.xml',
|
|
'security/ir.model.access.csv',
|
|
'wizard/account_asset_compute.xml',
|
|
'wizard/account_asset_remove.xml',
|
|
'views/account_account.xml',
|
|
'views/account_asset.xml',
|
|
'views/account_asset_profile.xml',
|
|
'views/res_config_settings.xml',
|
|
'views/account_invoice.xml',
|
|
'views/account_invoice_line.xml',
|
|
'views/account_move.xml',
|
|
'views/account_move_line.xml',
|
|
'views/menuitem.xml',
|
|
],
|
|
}
|