MCPcopy Create free account

hub / github.com/OCA/l10n-brazil / functions

Functions1,914 in github.com/OCA/l10n-brazil

↓ 296 callersMethodsearch
in the case of a simple search with only OR terms and a vat ilike condition, inject the possibility to match the cnpj_cpf_stripped field.
l10n_br_base/models/party_mixin.py:83
↓ 210 callersMethodcreate
(self, vals_list)
l10n_br_fiscal/models/nbm.py:35
↓ 107 callersMethodwrite
(self, values)
l10n_br_fiscal/models/nbm.py:40
↓ 65 callersMethodcreate
(self, vals_list)
l10n_br_account/models/fiscal_tax.py:75
↓ 26 callersMethodget_data
(self, data, name, title=False, lower=False)
l10n_br_cnpj_search/models/cnpj_webservice.py:95
↓ 25 callersMethodunlink
(self)
l10n_br_fiscal/models/document.py:412
↓ 22 callersMethodcreate
(self, vals_list)
l10n_br_base/models/res_partner_pix.py:146
↓ 18 callersMethod_change_state
Método para alterar o estado do documento fiscal, mantendo a integridade do workflow da invoice. Tenha muito cuidado ao alterar o wor
l10n_br_fiscal_edi/models/document_workflow.py:189
↓ 17 callersMethod_del_tax_definition
(self, tax_domain)
l10n_br_fiscal/models/res_company.py:341
↓ 17 callersMethodaction_post
(self)
l10n_br_account_payment_order/models/account_payment.py:17
↓ 16 callersMethod_set_tax_definition
(self, tax)
l10n_br_fiscal/models/res_company.py:347
↓ 16 callersMethodcreate
(self, vals_list)
l10n_br_fiscal_certificate/models/certificate.py:130
↓ 16 callersMethodjson
Returns JSON data.
l10n_br_nfse_focus/tests/test_l10n_br_nfse_focus.py:132
↓ 16 callersMethodzip_search
(self, obj)
l10n_br_zip/models/l10n_br_zip.py:176
↓ 15 callersMethod_export_field
(self, xsd_field, class_obj, member_spec, export_value=None)
l10n_br_nfe/models/document.py:819
↓ 15 callersMethodmessage_post
broadcast message_post to all related account.move so messages in a fiscal document chatter are visible in the related accoun
l10n_br_account/models/document.py:267
↓ 13 callersMethod_format_field_value
Format the field value based on its type. :param field: Field object :param value: Field value :return: Formatted fi
l10n_br_sped_base/models/sped_mixin.py:537
↓ 13 callersMethod_msg_error_cnab_missing
CNAB - Não é possível fazer a alteração pois falta algo :param payment_mode: Modo de Pagamento :param missing: descrição do q
l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py:158
↓ 11 callersMethod_compute_tax
Generic calculation of Brazilian taxes
l10n_br_fiscal/models/tax.py:320
↓ 11 callersMethod_get_draft_payment_order
Search for the payment order related to the invoice
l10n_br_account_payment_order/tests/common.py:748
↓ 11 callersMethod_get_stacking_points
(self)
spec_driven_model/models/spec_mixin.py:82
↓ 11 callersMethod_onchange_vat
Format the VAT field (CNPJ/CPF) with proper punctuation.
l10n_br_base/models/party_mixin.py:139
↓ 11 callersMethodwrite
Overriden so we can change the currency_id of base.main_company and specific demo companies even if constraints would normally preven
l10n_br_account/models/res_company.py:11
↓ 10 callersMethod_invoice_confirm_workflow
(self, invoice)
l10n_br_account_payment_order/tests/common.py:726
↓ 10 callersMethodcheck_validation_error_on_create
(self, pix_vals)
l10n_br_base/tests/test_valid_pix.py:118
↓ 10 callersMethodwrite
(self, values)
l10n_br_fiscal_certificate/models/certificate.py:135
↓ 10 callersMethodwrite
(self, vals)
l10n_br_base/models/res_partner_pix.py:151
↓ 9 callersMethod_import_tax_attrs
Import tax attributes. First the common like CST, vBC, pICMS, pIPI, vICMS, vIPI... common for ICMS, IPI, PIS, COFINS...
l10n_br_nfe/models/document_line.py:1461
↓ 9 callersMethod_make_cnab_change
CNAB - Realiza a Alteração Generica :param cnab_code: Codigo CNAB a ser usado :param new_payorder: se é uma nova Ordem de Pag
l10n_br_account_payment_order/models/l10n_br_cnab_change_methods.py:500
↓ 9 callersMethodaction_document_send
(self)
l10n_br_fiscal/models/document.py:483
↓ 9 callersMethodget_provider
Return selected provider in config
l10n_br_cnpj_search/models/cnpj_webservice.py:37
↓ 9 callersMethodinit_invoice
We could not override the super one because we need to inject extra BR fiscal fields.
l10n_br_account/tests/common.py:289
↓ 9 callersMethodis_business_day
Check if a date is a business day. :param datetime date: date to check. If not provided, checks today. :return boolean: True if it is
l10n_br_resource/models/resource_calendar.py:150
↓ 9 callersMethodis_holiday
Check if a date is a holiday. :param datetime date: date to check. If not provided, checks today. :return boolean: True if the date i
l10n_br_resource/models/resource_calendar.py:93
↓ 9 callersFunctionload_fixture_files
(env, module, file_names, idref=None, mode="init")
l10n_br_base/tests/tools.py:9
↓ 9 callersMethodsearch_documents
(self)
l10n_br_fiscal_dfe/models/dfe.py:156
↓ 8 callersMethod_edoc_processor
(self)
l10n_br_nfe/models/document.py:1128
↓ 8 callersMethod_get_br_ecertificate
(self, only_ecnpj=False)
l10n_br_fiscal_certificate/models/res_company.py:51
↓ 8 callersMethod_spec_prefix
Get spec_schema and spec_version from context or from class module
spec_driven_model/models/spec_mixin.py:50
↓ 8 callersMethodaction_document_confirm
(self)
l10n_br_fiscal/models/document.py:480
↓ 8 callersMethodaction_open_cnpj_search_wizard
(self)
l10n_br_cnpj_search/models/l10n_br_base_party_mixin.py:29
↓ 8 callersMethodcopy
(self, default=None)
l10n_br_base/models/res_partner.py:59
↓ 8 callersMethodcreate_event_save_xml
( self, company_id, environment, event_type, xml_file, documen
l10n_br_fiscal_edi/models/document_event.py:337
↓ 8 callersFunctioncreate_with_form_ir_sequence
(env, values)
l10n_br_account_payment_order/tests/tools.py:11
↓ 8 callersMethodis_bank_business_day
Check if a date is a bank business day. :param datetime date: date to check. If not provided, checks today. :return boolean: True if
l10n_br_resource/models/resource_calendar.py:216
↓ 8 callersFunctionload_fiscal_fixture_files
(env)
l10n_br_fiscal/tests/tools.py:7
↓ 8 callersMethodneed_change_discount_value
(self)
l10n_br_sale/models/sale_order_line.py:236
↓ 7 callersMethod_make_payment
(self, invoice, value)
l10n_br_account_payment_order/tests/common.py:882
↓ 7 callersMethod_prepare_wizard
(self, xml)
l10n_br_nfe/tests/test_nfe_import_wizard.py:36
↓ 7 callersMethod_run_sale_line_onchanges
(self, sale_line)
l10n_br_sale/tests/test_l10n_br_sale.py:207
↓ 7 callersMethod_run_sale_order_onchanges
(self, sale_order)
l10n_br_sale/tests/test_l10n_br_sale.py:204
↓ 7 callersMethodaction_ibpt_inquiry
(self)
l10n_br_fiscal/models/data_ncm_nbs_abstract.py:79
↓ 7 callersMethodaction_update_partner
(self)
l10n_br_cnpj_search/wizard/partner_cnpj_search_wizard.py:111
↓ 7 callersMethodbutton_cancel
(self)
l10n_br_account/models/account_move.py:870
↓ 7 callersMethodensure_one_doc
(self)
l10n_br_account/models/account_move.py:188
↓ 7 callersMethodget_base_days
Calculate the number of payable days in a given time interval. :param datetime date_from: start date of the interval. :param datetime
l10n_br_resource/models/resource_calendar.py:194
↓ 7 callersMethodis_bank_holiday
Check if a date is a bank holiday. :param datetime reference_date: date to check. If not provided, ch
l10n_br_resource/models/resource_calendar.py:108
↓ 7 callersFunctionr
(e,t,i,n,a,o,l,s,c)
l10n_br_portal/static/lib/cleave/cleave.min.js:8
↓ 7 callersMethodset_done
( self, status_code, response, protocol_date, protocol_number, file_response_xml )
l10n_br_fiscal_edi/models/document_event.py:322
↓ 7 callersMethodset_param
(cls, param_name, param_value)
l10n_br_cnpj_search/tests/common.py:336
↓ 7 callersMethodunlink
(self)
l10n_br_account_payment_order/models/account_move.py:138
↓ 7 callersMethodwrite
Overriden so we can change the currency_id of base.main_company during tests
l10n_br_account_payment_order/models/res_company.py:11
↓ 6 callersMethod_add_tax_details_in_base_line
Override to inject Brazilian fiscal tax computation. In Odoo 18, this method replaces the old _compute_all_tax flow. It computes taxe
l10n_br_account/models/account_tax.py:195
↓ 6 callersMethod_build_binding
Iterate over an Odoo record and its m2o and o2m sub-records using a pre-order tree traversal and map the Odoo record values t
spec_driven_model/models/spec_export.py:217
↓ 6 callersMethod_fetch_pdf_from_urls
Fetch PDF content from URLs in JSON data. Args: record: The document record. json_data (dict): JSON response data.
l10n_br_nfse_focus/models/document.py:181
↓ 6 callersMethod_get_spec_property
Used to access schema wise and version wise automatic mappings properties
spec_driven_model/models/spec_mixin.py:76
↓ 6 callersMethod_match_product
(self, xml_product)
l10n_br_nfe/wizards/document_import_wizard.py:165
↓ 6 callersMethod_prepare_dados_servico
(self)
l10n_br_nfse/models/document.py:140
↓ 6 callersMethod_run_invoice_and_order_workflow
(self, invoice, test_not_create_file=True)
l10n_br_account_payment_order/tests/common.py:759
↓ 6 callersMethod_run_payment_order_workflow
Run all Payment Order Workflow
l10n_br_account_payment_order/tests/common.py:732
↓ 6 callersMethodbuild_attrs
Build a new odoo model instance from a Python binding element or sub-element. Iterates over the binding fields to populate the Odoo f
spec_driven_model/models/spec_import.py:58
↓ 6 callersMethodbutton_draft
Set the move to draft state, handling fiscal documents.
l10n_br_account/models/account_move.py:541
↓ 6 callersFunctioncheck_cnpj_cpf
Check CNPJ or CPF is valid using erpbrasil library :param env: :param cnpj_cpf_value: :param country: :return:
l10n_br_base/tools.py:50
↓ 6 callersMethodcopy
Inherit copy to edit field code. This is needed because the field is Unique and Required.
l10n_br_fiscal/models/operation.py:298
↓ 6 callersFunctioncreate_with_form_account_account
(env, values)
l10n_br_account_payment_order/tests/tools.py:22
↓ 6 callersFunctioncreate_with_form_account_move
(env, values, line_values=False)
l10n_br_account_payment_order/tests/tools.py:165
↓ 6 callersMethodget_focusnfe_token
Retrieve the appropriate FocusNFe API token based on the current NFSe environment setting. Decide between the production and
l10n_br_nfse_focus/models/res_company.py:74
↓ 6 callersMethodload_fiscal_taxes
Create missing account.tax for Brazil. Add missing account.account for the Brazilian taxes. Relate account taxes with fiscal
l10n_br_account/models/template_br_oca.py:50
↓ 6 callersMethodmake_focus_nfse_pdf
Generate a PDF for a NFSe document using Focus NFSe service. Parameters: - content: The binary content of the PDF to be attached.
l10n_br_nfse_focus/models/document.py:53
↓ 6 callersMethodserialize
(self)
l10n_br_fiscal_edi/models/document.py:234
↓ 5 callersMethod_build_map_tax_def_domain
( self, company, partner, tax_group_icms=None, ncm=None, nbm=N
l10n_br_fiscal/models/icms_regulation.py:1927
↓ 5 callersMethod_change_user_company
(self, company)
l10n_br_sale/tests/test_l10n_br_sale.py:184
↓ 5 callersMethod_create_invoices
(self, grouped=False, final=False, date=None)
l10n_br_sale/models/sale_order.py:123
↓ 5 callersMethod_create_test_invoice
Helper method to create a test invoice with standard configuration
l10n_br_account/tests/test_invoice_refund.py:46
↓ 5 callersMethod_document_status
Check and update the status of the NFSe document. Parameters: None. Returns: A string indicating the current
l10n_br_nfse_focus/models/document.py:389
↓ 5 callersMethod_get_company
(self)
l10n_br_fiscal/models/document_line_mixin.py:395
↓ 5 callersMethod_handle_cancelled_status
Handle already cancelled status. Args: record: The document record. status_json (dict): Status JSON response.
l10n_br_nfse_focus/models/document.py:472
↓ 5 callersFunction_is_valid_pdf
Check if content is a valid PDF. Args: content (bytes): PDF content to validate. Returns: bool: True if content is a valid P
l10n_br_nfse_focus/models/helpers.py:61
↓ 5 callersMethod_onchange_city_id
(self)
l10n_br_base/models/res_partner.py:243
↓ 5 callersMethod_ordered_fields
class _fields in the order they are declared.
l10n_br_sped_base/models/sped_mixin.py:434
↓ 5 callersMethod_parse_file
(self)
l10n_br_nfe/wizards/document_import_wizard.py:66
↓ 5 callersMethod_scheduled_update
(self)
l10n_br_fiscal/models/data_ncm_nbs_abstract.py:143
↓ 5 callersMethod_set_tax_group_accs
(self, template_code, tax_data)
l10n_br_coa/models/template_br_oca.py:111
↓ 5 callersMethod_tax_definition_search
(self, domain, ncm, nbm, cest, product, ind_final=None)
l10n_br_fiscal/models/icms_regulation.py:1973
↓ 5 callersMethodcompute_all
Returns all information required to apply taxes (in self + their children in case of a tax goup). We consider the sequence of
l10n_br_account/models/account_tax.py:19
↓ 5 callersMethodcompute_taxes
Compute all applicable Brazilian taxes based on a set of input parameters. This method orchestrates the calculation of various taxes
l10n_br_fiscal/models/tax.py:764
↓ 5 callersFunctioncreate_with_form_account_journal
(env, values, line_values=False)
l10n_br_account_payment_order/tests/tools.py:45
↓ 5 callersFunctioncreate_with_form_account_payment_mode
(env, values, line_values=False)
l10n_br_account_payment_order/tests/tools.py:152
↓ 5 callersMethoddraft2open
Called when you click on the 'Confirm' button Set the 'date' on payment line depending on the 'date_prefered' setting of the
l10n_br_account_payment_order/models/account_payment_order.py:80
↓ 5 callersMethodget_nfce_qrcode
(self)
l10n_br_nfe/models/document.py:1739
next →1–100 of 1,914, ranked by callers