==================================
Brazilian Localization CNPJ Search
==================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:bb35799704d6efe4d26366aa0b1776128906dc9008a4e92979badb230862da25
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--brazil-lightgray.png?logo=github
    :target: https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_cnpj_search
    :alt: OCA/l10n-brazil
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/l10n-brazil-14-0/l10n-brazil-14-0-l10n_br_cnpj_search
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&target_branch=14.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Módulo que adiciona um botão para preencher automaticamente os campos de um partner a partir do seu CNPJ.
Seguem abaixo os campos que podem ser consultados de ambas as APIs utilizadas para conseguir informações a partir do CNPJ:

ReceitaWS
-------------------

.. figure:: https://raw.githubusercontent.com/OCA/l10n-brazil/14.0/l10n_br_cnpj_search/static/description/receita.png
   :alt: ReceitaWS campos parte 1
   :width: 80 %
   :align: center

.. figure:: https://raw.githubusercontent.com/OCA/l10n-brazil/14.0/l10n_br_cnpj_search/static/description/receita1.png
   :alt: ReceitaWS campos parte 2
   :width: 80 %
   :align: center

.. figure:: https://raw.githubusercontent.com/OCA/l10n-brazil/14.0/l10n_br_cnpj_search/static/description/receita2.png
   :alt: ReceitaWS campos parte 3
   :width: 80 %
   :align: center

SERPRO
----------------------------------------------

.. figure:: https://raw.githubusercontent.com/OCA/l10n-brazil/14.0/l10n_br_cnpj_search/static/description/serpro.png
   :alt: SERPRO
   :width: 80 %
   :align: center

.. figure:: https://raw.githubusercontent.com/OCA/l10n-brazil/14.0/l10n_br_cnpj_search/static/description/serpro1.png
   :alt: SERPRO
   :width: 80 %
   :align: center

**Table of contents**

.. contents::
   :local:

Configuration
=============

Esta busca de informações a partir do cnpj é realizada com base no provedor configurado na aba de configurações, vale ressaltar que o provedor receitaws permite a realização de três consultas por minuto, enquanto que o SERPRO é pago e permite consultas ilimitadas em seus planos.

Usage
=====

#. Acesse  Configurações
#. Escolha um provedor para a busca
#. Acesse Configurações > Usuários e Empresas > Empresas > Criar ou acesse Contatos > Criar
#. Preencha os campos obrigatórios, insira no campo de CNPJ o CNPJ que deseja buscar e clique na lupa ao lado do campo para buscar
#. O mesmo procedimento pode ser feito editando alguma empresa.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-brazil/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_cnpj_search%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* KMEE

Contributors
~~~~~~~~~~~~

* `KMEE <https://www.kmee.com.br>`_:

  * Breno Oliveira Dias <breno.dias@kmee.com.br>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_cnpj_search>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
