L10n BR Fiscal FCI
l10n_br_fiscal_fci · OCA/l10n-brazil
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Description
Este módulo implementa a gestão da FCI (Ficha de Conteúdo de Importação) exigida pelo Convênio ICMS 38/2013 e pelo Ato COTEPE ICMS 61/2012.
Os contribuintes que industrializam mercadorias importadas devem informar à
administração tributária do estado de origem, por meio de um arquivo
digital, a participação da parcela importada no total da mercadoria
resultante (Conteúdo de Importação). Para cada mercadoria do arquivo
transmitido a administração tributária gera um número de controle da FCI,
que deve ser informado no campo nFCI da NF-e das operações interestaduais
com essa mercadoria.
O módulo oferece:
- o registro da FCI (
l10n_br_fiscal.fci.file), com os dados de um arquivo digital, e as suas mercadorias (l10n_br_fiscal.fci), o registro 5020 do leiaute; - a geração do arquivo TXT no leiaute do Ato COTEPE ICMS 61/2012, pronto para ser validado e transmitido com o Validador/Transmissor da SEFAZ;
- o cálculo do Conteúdo de Importação com a regra de arredondamento exigida pelo leiaute;
- um assistente para ler o arquivo de retorno baixado do sistema web da FCI, que preenche o número de controle da FCI de cada mercadoria;
- o número de controle da última FCI de cada produto, na aba Fiscal do produto.
Dependencies
- Odoo dependencies
- Python dependencies
- erpbrasil-base>=2.4.2, email-validator, num2words, phonenumbers
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fci_file_form |
l10n_br_fiscal.fci.file.form | l10n_br_fiscal.fci.file | form | New |
fci_file_search |
l10n_br_fiscal.fci.file.search | l10n_br_fiscal.fci.file | search | New |
fci_file_tree |
l10n_br_fiscal.fci.file.tree | l10n_br_fiscal.fci.file | list | New |
fci_import_wizard_form |
l10n_br_fiscal.fci.import.wizard.form | l10n_br_fiscal.fci.import.wizard | form | New |
fci_search |
l10n_br_fiscal.fci.search | l10n_br_fiscal.fci | search | New |
fci_tree |
l10n_br_fiscal.fci.tree | l10n_br_fiscal.fci | list | New |
product_template_form |
l10n_br_fiscal_fci.product.template.form | product.template | form | Inherits l10n_br_fiscal.product_template_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
amount_importedFloatdigits='Product Price'help='Amount of the parcel imported from abroad per unit of measure, register 5020 field VALOR_PARCELA_IMPORTADA_EXTERIOR.'required=Truestring='Imported Amount' -
amount_interstateFloatdigits='Product Price'help='Total amount of the interstate output of the goods per unit of measure, register 5020 field VALOR_SAIDA_MERCADORIA_INTERESTADUAL.'required=Truestring='Interstate Output Amount' -
company_idMany2one → res.companycomodel_name='res.company'index=Truerelated='fci_file_id.company_id'store=True -
currency_idMany2one → res.currencycomodel_name='res.currency'related='company_id.currency_id'string='Currency' -
fci_codeCharcopy=Falsehelp='FCI control number returned by the tax administration, to be written in the NF-e field nFCI.'index=Truereadonly=Truesize=36string='FCI Control Number' -
fci_file_idMany2one → l10n_br_fiscal.fci.filecomodel_name='l10n_br_fiscal.fci.file'index=Trueondelete='cascade'required=Truestring='FCI' -
gtinCharcompute='_compute_product_fields'help='Global Trade Item Number, register 5020 field CODIGO_GTIN. This field is optional.'precompute=Truereadonly=Falsesize=14store=Truestring='GTIN' -
import_contentFloatcompute='_compute_import_content'digits=(6, 2)help='Percentage of the import content, register 5020 field CONTEUDO_IMPORTACAO_CI.'store=Truestring='Import Content (%)' -
nameCharcompute='_compute_product_fields'help='Register 5020 field NOME_MERCADORIA.'precompute=Truereadonly=Falserequired=Truesize=255store=Truestring='Description' -
ncm_codeCharhelp='Register 5020 field CODIGO_NCM.'related='ncm_id.code_unmasked'string='NCM Code' -
ncm_idMany2one → l10n_br_fiscal.ncmcomodel_name='l10n_br_fiscal.ncm'compute='_compute_product_fields'precompute=Truereadonly=Falsestore=Truestring='NCM' -
product_codeCharcompute='_compute_product_fields'help='Internal code identifying the goods in the establishment, register 5020 field CODIGO_MERCADORIA.'precompute=Truereadonly=Falserequired=Truesize=50store=True -
product_idMany2one → product.productcheck_company=Truecomodel_name='product.product'help='Product of the goods. It is not written in the file, it links the FCI control number to the product. It may be empty right after the import of a file generated in another platform, when no product matches the code of the goods.'index=Truestring='Product' -
product_tmpl_idMany2one → product.templatecomodel_name='product.template'index=Truerelated='product_id.product_tmpl_id'store=Truestring='Product Template' -
sequenceIntegerdefault=10 -
stateSelectionrelated='fci_file_id.state'store=Truestring='Status' -
uom_codeCharcompute='_compute_uom_code'help="Abbreviation of the unit of measure of the goods, register 5020 field UNIDADE_MERCADORIA. Use '99' for units which are not in the table of the Ato COTEPE ICMS 61/2012."precompute=Truereadonly=Falserequired=Truesize=6store=Truestring='Unit Code' -
uom_idMany2one → uom.uomcomodel_name='uom.uom'compute='_compute_product_fields'precompute=Truereadonly=Falsestore=Truestring='Unit of Measure' -
validation_indicatorSelectioncopy=Falsehelp='Register 5020 field IN_VALIDACAO_FICHA of the return file.'readonly=Trueselection=FCI_LINE_VALIDATION
No public methods.
-
city_idMany2one → res.citycomodel_name='res.city'related='company_id.city_id'string='City' -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>required=True -
currency_idMany2one → res.currencycomodel_name='res.currency'related='company_id.currency_id'string='Currency' -
dateDatetimedefault=fields.Datetime.nowhelp='Date used to build the file name, as required by the layout.'required=Truestring='Creation Date' -
date_receptionCharcopy=Falsehelp='Register 0000 field DT_RECEPCAO_ARQUIVO of the return file.'readonly=Truestring='Reception Date' -
date_validationCharcopy=Falsehelp='Register 0000 field DT_VALIDACAO_ARQUIVO of the return file.'readonly=Truestring='Validation Date' -
fci_countIntegercompute='_compute_line_count'string='Goods Count' -
fci_idsOne2many → l10n_br_fiscal.fcicomodel_name='l10n_br_fiscal.fci'copy=Trueinverse_name='fci_file_id'string='Goods' -
fileBinaryattachment=Truecopy=Falsereadonly=Truestring='FCI File' -
filenameCharcopy=Falsereadonly=Truestring='File Name' -
hash_codeCharcopy=Falsehelp='Register 0000 field HASH_CODE of the return file.'readonly=True -
l10n_br_ie_codeCharrelated='company_id.l10n_br_ie_code'string='State Tax Number' -
layout_versionChardefault=FCI_LAYOUT_VERSIONhelp='Layout version of the file, register 0000 field VERSAO_LEIAUTE.'readonly=Truerequired=True -
legal_nameCharrelated='company_id.legal_name' -
nameCharcompute='_compute_name'index=Truestore=True -
protocol_numberCharcopy=Falsehelp='Protocol number returned by the TED after the transmission of the file. It is used to query the FCI control numbers on the web.'string='Reception Protocol'tracking=True -
return_fileBinaryattachment=Truecopy=Falsereadonly=True -
return_filenameCharcopy=Falsereadonly=Truestring='Return File Name' -
stateSelectioncopy=Falsedefault='draft'readonly=Truerequired=Trueselection=FCI_STATEstring='Status'tracking=True -
state_idMany2one → res.country.statecomodel_name='res.country.state'related='company_id.state_id'string='State' -
street_nameCharrelated='company_id.street_name' -
street_numberCharrelated='company_id.street_number' -
validation_indicatorCharcopy=Falsehelp='Register 0000 field IN_VALIDACAO_ARQUIVO of the return file.'readonly=True -
vatCharrelated='company_id.vat'string='CNPJ' -
zipCharrelated='company_id.zip'
-
action_back_to_draft(self) -
action_generate_file(self) -
action_import_return_file(self)Open the wizard which reads the file returned by the SEFAZ. -
action_set_transmitted(self) -
copy(self, default=None) -
unlink(self)
-
fci_file_idMany2one → l10n_br_fiscal.fci.filecomodel_name='l10n_br_fiscal.fci.file'help='FCI updated by the return file. Leave it empty to create a new FCI from the imported file.'ondelete='cascade'string='FCI' -
fileBinaryhelp='FCI file in the layout of the Ato COTEPE ICMS 61/2012, either a file to be transmitted or a file returned by the SEFAZ. The ZIP file downloaded from the FCI web system is also accepted.'required=True -
filenameCharstring='File Name' -
resultTextreadonly=True -
stateSelectiondefault='init'readonly=Trueselection=[('init', 'init'), ('done', 'done')]
-
action_import(self) -
action_import_file(self, filename, file_data)@api.modelImport a file uploaded from the FCI list view. -
action_open_fci_file(self) -
default_get(self, fields_list)@api.model
-
fci_codeCharcompute='_compute_fci_code'help='Last FCI control number generated for this product in the current company. It must be written in the NF-e field nFCI of the interstate operations with this product.'string='FCI Control Number' -
fci_countIntegercompute='_compute_fci_code'string='FCI Count' -
fci_idsOne2many → l10n_br_fiscal.fcicomodel_name='l10n_br_fiscal.fci'inverse_name='product_tmpl_id'readonly=Truestring='FCI'
-
action_view_fci(self)
Loading…