Skip to content
Health
72/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 9 months ago
  • Required by15/25
    1 module depends on it
  • Maturity12/25
    In 2 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.29 MB
Module directory on disk
Code analysis 0 migration notes 6 models 9 views 0 HTTP endpoints

Description

Dependencies

Odoo dependencies
OCA/account-financial-reporting:
OCA/account-financial-tools:
OCA/l10n-italy:
OCA/reporting-engine:
OCA/server-ux:
odoo/odoo:
- web
- bus
- uom
Python dependencies
xlrd, xlsxwriter
System dependencies
None
Required by
l10n_it_asset_history_import_queue

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 9

XML IDNameModelTypeStatus
asset_category_form_view_inherit asset.category.form.view asset.category form Inherits assets_management.asset_category_form_view
asset_depreciation_mode_form_view_inherit asset.depreciation.mode.form.view asset.depreciation.mode form Inherits assets_management.asset_depreciation_mode_form_view
asset_depreciation_mode_tree_view_inherit asset.depreciation.mode.tree.view asset.depreciation.mode tree Inherits assets_management.asset_depreciation_mode_tree_view
asset_depreciation_type_form_view_inherit asset.depreciation.type.form.view asset.depreciation.type form Inherits assets_management.asset_depreciation_type_form_view
asset_depreciation_type_tree_view_inherit asset.depreciation.type.tree.view asset.depreciation.type tree Inherits assets_management.asset_depreciation_type_tree_view
asset_form_view_inherit asset.form.view asset.asset form Inherits assets_management.asset_form_view
asset_search_view_inherit asset.search.view asset.asset search Inherits assets_management.asset_search_view
asset_tree_view_inherit asset.tree.view asset.asset tree Inherits assets_management.asset_tree_view
wizard_wizard_asset_history_import wizard.asset.history.import.form.view wizard.asset.history.import form New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 6

New fields (1)
  • import_code Char
    copy=False help='Used to import data from xls(x) files. Must be unique.' readonly=True string='Import Code'
Public methods (5)
  • assign_import_code(self)
  • create(self, vals_list)
    @api.model_create_multi
  • get_by_import_code(self, code)
    @api.model
  • make_template_file_data(self, file_headers)
  • write(self, vals)

New fields (1)
  • import_code Char
    copy=False help='Used to import data from xls(x) files. Must be unique.' readonly=True string='Import Code'
Public methods (4)
  • assign_import_code(self)
  • create(self, vals_list)
    @api.model_create_multi
  • get_by_import_code(self, code)
    @api.model
  • write(self, vals)

New fields (0)

No new fields.

Public methods (1)
  • get_template_file_data(self, file_headers)

New fields (1)
  • import_code Char
    copy=False help='Used to import data from xls(x) files. Must be unique.' readonly=True string='Import Code'
Public methods (4)
  • assign_import_code(self)
  • create(self, vals_list)
    @api.model_create_multi
  • get_by_import_code(self, code)
    @api.model
  • write(self, vals)

New fields (1)
  • import_code Char
    copy=False help='Used to import data from xls(x) files. Must be unique.' readonly=True string='Import Code'
Public methods (4)
  • assign_import_code(self)
  • create(self, vals_list)
    @api.model_create_multi
  • get_by_import_code(self, code)
    @api.model
  • write(self, vals)

New fields (4)
  • company_id Many2one → res.company
    default=get_default_company_id required=True string='Company' args: 'res.company'
  • file Binary
    string='File'
  • filename Char
    string='File Name'
  • template_file Binary
    string='Template File'
Public methods (11)
  • check_before_import(self)
  • convert_to_asset_vals(self, asset_dict, workbook, sheet)
    Takes `asset_dict` as read from imported file, returns vals to be written into the DB (via a `create()` or `write()`
  • convert_to_dep_vals(self, dep_dict, workbook, sheet)
    Takes `dep_dict` as read from imported file, returns vals to be written into the DB (via a `create()` or `write()`
  • convert_to_lines_vals(self, line_dicts, workbook, sheet)
    Takes `line_dicts` as read from imported file, returns list of vals to be written into the DB (via a `create()` or `write()`
  • download_template_file(self)
    Retrieve an asset with any depreciation line to create a template file with its data. If no asset is found, simply return an empty template file with sheet headers only (as by `template_file` default).
  • get_default_company_id(self)
    @api.model
  • get_obj_by_import_code(self, model, code)
    This method returns an asset, a category, a depreciation type or mode according to given `model` and `code`.
  • import_assets_from_data(self, file_data, workbook, sheet)
  • import_file(self)
    Imports the `file` content
  • launch_view(self, asset_ids)
    Opens tree view upon assets
  • parse_file(self)

Loading…

Loading…