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

Migration/l10n br crm #130

Closed
wants to merge 16 commits into from
Closed

Conversation

renatonlima
Copy link
Member

No description provided.

@mileo
Copy link
Member

mileo commented Jun 8, 2015

@renatonlima are you redoing the work of #124 ?

@rvalyi
Copy link
Member

rvalyi commented Jun 9, 2015

so once this branch with l10n_br_base #129 is passing tests again, it needs to be merged into this one to enable the installation and testing by Travis.

@rvalyi
Copy link
Member

rvalyi commented Jun 10, 2015

So I didn't merge l10n_br base in this branch to avoid possible conflicts when merging globally. Instead here is the test branch where we also have code-metrics: #154

The coverage is lower with the l10n_br_crm module and I think it deserved a dumb lead conversion test before we merge.
Lint results are here: https://travis-ci.org/OCA/l10n-brazil/jobs/66147684
We need them green before considering merge, so 👎 for now.

@mileo. Same as for the l10n_br_base PR. Please if we are missing any good feature you guys did, please cherry pick the commits and rebase them on this branch We will do our best to look at your work before merging anyway. Sorry again for the inconvenience of the double work here, again explained by the very exceptional conditions we had.

###############################################################################
# #
# Copyright (C) 2011 Renato Lima - Akretion #
# Copyright (C) 2015 Renato Lima - Akretion #
Copy link
Member

Choose a reason for hiding this comment

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

should be 2011 - TODAY

@rvalyi
Copy link
Member

rvalyi commented Jun 10, 2015

👍
PEP is OK, installation works on the test branch.
We can eventually add a lead conversion test.

@rvalyi
Copy link
Member

rvalyi commented Jun 10, 2015

@mileo I see that in your branch you added the rg on a lead (seems legitimate), you also separated the cpf and cnpj fields. Could you elaborate on why (it's not in the commit message I think)? @renatonlima what do you think about this design? https://github.com/odoo-brazil/l10n-brazil/blob/8.0/l10n_br_crm/crm_lead.py#L42 cc @danimaribeiro

@rvalyi
Copy link
Member

rvalyi commented Jun 18, 2015

OK, so we are now green on tests and PEP-8.
That's sad to decrease the coverage, so that would be cool to add some basic lead conversion test and keep a high coverage.

@mileo we found some design changes you did here like separating the cpf and cnpj fields. Could you please argue why you think it's better than what we have now? @renatonlima didn't seem convinced but may be you'll convince us.

@danimaribeiro
Copy link
Contributor

One is used for the company data, and the other for the contact.
In this case, I think is necessary to have both fields.

capturar

Not ok to merge yet.

@danimaribeiro
Copy link
Contributor

It happens an error when converting a lead to an oportunity.

error creating lead

The method signature is different from the crm base class. Adjusting the signature to the following:

new signature

It works partially, because now I get the error about "CNPJ invalido":
cnpj invalido

So definitely we need two different fields, CNPJ and CPF, one is for legal_name and the other for contact_name.

@danimaribeiro
Copy link
Contributor

It's better to get the code from odoo-brazil, with @api.model, the lead conversion to opportunity is working nicely, generating both company and contact with the corresponding CNPJ and CPF.

It would be nice to have the address fields order according to partner and company, but that I can submit a patch after.

@danimaribeiro
Copy link
Contributor

Merged in #165

@rvalyi
Copy link
Member

rvalyi commented Oct 12, 2015

oups that one had to be closed then

@rvalyi rvalyi closed this Oct 12, 2015
marcelsavegnago pushed a commit to Escodoo/l10n-brazil that referenced this pull request Jan 20, 2021
…fix-flake8

[12.0-l10n_br_nfe-ak-filtered][FIX] flake8
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.

4 participants