Repository
OCA/l10n-italy · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting
Folder size
0.29 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-italy
Last tracking update
2026-08-07 07:47:33
Authors
Odoo Community Association (OCA), Openforce
Maintainers
Odoo Community Association (OCA), Openforce
Committers
Weblate, OCA-git-bot, oca-ci, matteo.tognini, Marco Colombo
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
Description

Code Analysis

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…