Bulgaria Tariff Code Management

l10n_bg_tariff_code
REPOSITORY
REPOSITORYOCA/l10n-bulgaria
GIT
GIThttps://github.com/OCA/l10n-bulgaria.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-bulgaria/tree/18.0/l10n_bg_tariff_code
VERSION
VERSION 3.0.10
CATEGORY
CATEGORYAccounting/Localizations
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Rosen Vladimirov
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Rosen Vladimirov
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, rosenvladimirov
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-bulgaria
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - stock_delivery
    - sale_stock
    - sale
    - sales_team
    - account_payment
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - delivery
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
TARIC/HS/CN Code Management with EU API Integration.

Code Analysis

Views touched (9)
XML IDNameModelTypeStatus
product_template_form_view product.template.form.tariff product.template xpath Inherits product.product_template_form_view
res_config_settings_view_form_tariff res.config.settings.view.form.inherit.tariff res.config.settings xpath Inherits account.res_config_settings_view_form
view_l10n_bg_taric_cache_form l10n_bg.taric.cache.form l10n_bg.taric.cache form New
view_l10n_bg_taric_cache_search l10n_bg.taric.cache.search l10n_bg.taric.cache search New
view_l10n_bg_taric_cache_tree l10n_bg.taric.cache.tree l10n_bg.taric.cache list New
view_l10n_bg_taric_import_wizard l10n_bg.taric.import.wizard.form l10n_bg.taric.import.wizard form New
view_move_form account.move.form account.move xpath Inherits account.view_move_form
view_move_line_form_tariff account.move.line.form.tariff account.move.line xpath Inherits account.view_move_line_form
view_move_line_tree_tariff account.move.line.tree.tariff account.move.line xpath Inherits account.view_move_line_tree
Models touched (7)

New fields (7)
  • l10n_bg_tariff_code Char
    compute='_compute_l10n_bg_tariff_code' help='Tariff code (CN/HS/intrastat compatible)' inverse='_inverse_l10n_bg_tariff_code' store=True string='Tariff/HS/CN Code'
  • l10n_bg_tariff_code_manual Char
    help='Manually entered tariff code' string='Manual Tariff Code'
  • l10n_bg_tariff_description Text
    help='Description from the TARIC system' string='Tariff Description'
  • l10n_bg_tariff_last_update Datetime
    help='Last tariff rate update' string='Tariff Last Update'
  • l10n_bg_tariff_rate Float
    compute='_compute_l10n_bg_tariff_rate' help='Tariff rate from the EU Taric System' inverse='_inverse_l10n_bg_tariff_rate' store=True string='Tariff Rate (%)'
  • l10n_bg_tariff_rate_is_manual Boolean
    default=False help='Indicates whether the rate is manually entered and should not be recalculated automatically' string='Manual Rate Override'
  • l10n_bg_tariff_rate_manual Float
    help='Manually entered tariff rate' string='Manual Tariff Rate (%)'
Public methods (2)
  • action_sync_hs_codes(self)
    Синхронизира HS кодовете с продуктите
  • action_update_tariff_rate(self)
    Ръчно обновяване на тарифната ставка

New fields (9)
  • cn_code Char
    help='Combined Nomenclature code (8-10 digits)' index=True required=True string='CN Code'
  • country_code Char
    help='ISO country code (e.g., CN, US, etc.)' index=True required=True
  • description Text
    help='Goods nomenclature description'
  • duty_rate Float
    help='Customs duty rate in percentage' required=True string='Duty Rate (%)'
  • last_update Datetime
    default=fields.Datetime.now required=True
  • measure_type Char
    help='Type of measure (e.g., 103 = Third country duty)'
  • source Selection
    default='api' required=True string='Data Source' args: [('api', 'API'), ('circabc', 'CIRCABC Import'), ('manual', 'Manual Entry')]
  • valid_from Date
    default=fields.Date.today index=True required=True
  • valid_to Date
    default=<expr> index=True required=True
Public methods (3)
  • cleanup_expired_entries(self)
    @api.model
    Изчиства изтекли записи (извиква се от cron)
  • import_from_circabc_url(self, file_url)
    @api.model
    Импортира TARIC данни директно от CIRCABC URL Примерни URLs: - https://circabc.europa.eu/sd/a/[file-id]/TARIC_data.xlsx - https://circabc.europa.eu/d/d/workspace/...
  • import_from_file(self, file_data, filename)
    @api.model
    Импортира TARIC данни от качен файл :param file_data: base64 encoded file content :param filename: name of the file

New fields (4)
  • circabc_url Char
    help='Direct link to TARIC Excel/CSV file on CIRCABC' string='CIRCABC URL'
  • file_data Binary
    help='Upload Excel (.xlsx) or CSV file with TARIC data' string='TARIC File'
  • filename Char
  • import_method Selection
    default='file' required=True args: [('file', 'Upload File'), ('url', 'Download from URL')]
Public methods (1)
  • action_import(self)
    Изпълнява импорта

New fields (0)

No new fields.

Public methods (2)
  • action_clear_manual_tariff_rate(self)
    Изчиства ръчно въведените тарифни ставки и обновява автоматично
  • action_update_tariff_rate(self)
    Обновява тарифната ставка за избраните продукт варианти

New fields (5)
  • l10n_bg_tariff_description Text
    help='Description of the tariff rate for this product' string='Tariff Description'
  • l10n_bg_tariff_last_update Datetime
    help='When was the tariff rate last updated' string='Tariff Rate Last Update'
  • l10n_bg_tariff_rate Float
    compute='_compute_l10n_bg_tariff_rate' help='Cached tariff rate for this product' inverse='_inverse_l10n_bg_tariff_rate' store=True string='Default Tariff Rate (%)'
  • l10n_bg_tariff_rate_manual Float
    help='Manually entered tariff rate (priority over automatic)' string='Manual Tariff Rate (%)'
  • taric_code Char
    help='TARIC code of the product (synchronized with HS Code)' string='TARIC Code'
Public methods (2)
  • action_clear_manual_tariff_rate(self)
    Изчиства ръчно въведените тарифни ставки и обновява автоматично
  • action_update_tariff_rate(self)
    Обновява тарифната ставка за избраните продукти

New fields (5)
  • l10n_bg_auto_download Boolean
    help='Download TARIC data automatically' string='Auto Download'
  • l10n_bg_default_tariff_rate Float
    help='Default tariff rate when it cannot be found in TARIC' string='Default Tariff Rate (%)'
  • l10n_bg_taric_api_enabled Boolean
    default=True help='Enable automatic TARIC lookup' string='Enable TARIC API'
  • l10n_bg_taric_api_url Char
    default='https://ec.europa.eu/taxation_customs/dds2/taric/services/taricws' help='URL of the European TARIC API system' string='TARIC API URL'
  • l10n_bg_taric_cache_duration Integer
    default=24 help='How many hours to cache tariff rates' string='TARIC Cache Duration (hours)'
Public methods (0)

No public methods.

New fields (5)
  • l10n_bg_auto_download Boolean
    help='Download TARIC data automatically' readonly=False related='company_id.l10n_bg_auto_download' string='Auto Download'
  • l10n_bg_default_tariff_rate Float
    help='Default tariff rate when it cannot be found in TARIC' readonly=False related='company_id.l10n_bg_default_tariff_rate' string='Default Tariff Rate (%)'
  • l10n_bg_taric_api_enabled Boolean
    help='Enable automatic TARIC lookup' readonly=False related='company_id.l10n_bg_taric_api_enabled' string='Enable TARIC API'
  • l10n_bg_taric_api_url Char
    help='URL of the European TARIC API system' readonly=False related='company_id.l10n_bg_taric_api_url' string='TARIC API URL'
  • l10n_bg_taric_cache_duration Integer
    help='How many hours to cache tariff rates' readonly=False related='company_id.l10n_bg_taric_cache_duration' string='TARIC Cache Duration (hours)'
Public methods (0)

No public methods.