| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/l10n-bulgaria |
| GIT | |
| GIT | https://github.com/OCA/l10n-bulgaria.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/l10n-bulgaria/tree/18.0/l10n_bg_tariff_code |
| VERSION | |
| VERSION | 3.0.10 |
| CATEGORY | |
| CATEGORY | Accounting/Localizations |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Rosen Vladimirov |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Rosen Vladimirov |
| COMMITTERS | |
| COMMITTERS | OCA-git-bot, oca-ci, rosenvladimirov |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/l10n-bulgaria |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 19:30:20 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - onboarding - product - 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. |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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 |
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 (%)'
action_sync_hs_codes(self)
action_update_tariff_rate(self)
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
cleanup_expired_entries(self)
import_from_circabc_url(self, file_url)
import_from_file(self, file_data, filename)
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')]
action_import(self)
No new fields.
Public methods (2)action_clear_manual_tariff_rate(self)
action_update_tariff_rate(self)
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'
action_clear_manual_tariff_rate(self)
action_update_tariff_rate(self)
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)'
No public methods.
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)'
No public methods.