Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][NEW] l10n_br_crm_cnpj_search: busca de CNPJ através do Lead #3289

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

corredato
Copy link
Contributor

A combinação do l10n_br_cnpj_search e l10n_br_crm havia uma ponta solta: Caso necessário, não era possível realizar uma busca das informações de uma empresa através do CNPJ em um lead que não tinha partner_id preenchido, esse módulo faz com que esse problema não exista mais, além de fazer com que informações como CNAE primário, CNAE secundário, capital e natureza legal sejam passadas para o cadastro do parceiro quando um novo contato é criado a partir da conversão de Lead para Oportunidade.

@mileo @antoniospneto @rvalyi

@corredato corredato changed the title [16.0] [NEW] l10n_br_crm_cnpj_search: busca de CNPJ através do Lead [16.0][NEW] l10n_br_crm_cnpj_search: busca de CNPJ através do Lead Aug 16, 2024
rvalyi
rvalyi previously requested changes Aug 22, 2024
Copy link
Member

@rvalyi rvalyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@corredato, tem que ver os testes e inclusive adicionar testes com um mock semelhante ao que foi feito no módulo de busca. No repo precisa de 90% de test coverage. Até bater ter isso é bom botar o PR como rascunho.

@mileo mileo marked this pull request as draft August 22, 2024 13:11
l10n_br_crm_cnpj_search/models/crm_lead.py Outdated Show resolved Hide resolved
@corredato
Copy link
Contributor Author

Depends on #3306

@corredato corredato force-pushed the feature/cnpj-search-crm-lead branch from 6a999df to ad35598 Compare August 28, 2024 11:26
@corredato corredato force-pushed the feature/cnpj-search-crm-lead branch 3 times, most recently from 191eae9 to b919379 Compare August 29, 2024 18:55
@Tiago370 Tiago370 force-pushed the feature/cnpj-search-crm-lead branch from acc4fda to 87363be Compare October 10, 2024 11:41
@Tiago370 Tiago370 force-pushed the feature/cnpj-search-crm-lead branch 11 times, most recently from f1e386b to 90139da Compare October 17, 2024 10:47
@Tiago370 Tiago370 force-pushed the feature/cnpj-search-crm-lead branch 3 times, most recently from c173033 to aa72314 Compare October 21, 2024 13:05
@Tiago370 Tiago370 force-pushed the feature/cnpj-search-crm-lead branch 6 times, most recently from ee35986 to 5f9975f Compare October 24, 2024 12:34
@Tiago370 Tiago370 force-pushed the feature/cnpj-search-crm-lead branch from 5f9975f to 4188871 Compare October 24, 2024 13:48
@mileo mileo marked this pull request as ready for review October 25, 2024 13:14
@rvalyi
Copy link
Member

rvalyi commented Oct 25, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-3289-by-rvalyi-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 23d93e4 into OCA:16.0 Oct 25, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 3926b5e. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants