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

Lead vat #52

Merged
merged 5 commits into from
Oct 24, 2015
Merged

Lead vat #52

merged 5 commits into from
Oct 24, 2015

Conversation

yajo
Copy link
Member

@yajo yajo commented Oct 6, 2015

Relaunching part of Antiun/antiun-odoo-addons#11.

Add VAT field to leads.

It will fully work after odoo/odoo#8899 is merged, but I think it can be merged anyway.

cc @rafaelbn.

@yajo
Copy link
Member Author

yajo commented Oct 13, 2015

Now NOT depending on odoo/odoo#8899.

@rafaelbn
Copy link
Member

Tested in runbot 👍

@pedrobaeza
Copy link
Member

Please check Travis

@yajo
Copy link
Member Author

yajo commented Oct 16, 2015

Local tests work, seems like new_api = None in Travis for some reason. I did leap of faith with last commit. Let's see...

@yajo
Copy link
Member Author

yajo commented Oct 16, 2015

@pedrobaeza
Copy link
Member

I have fixed the problem in d4c1348. Please rebase and you'll get a green branch.

@yajo
Copy link
Member Author

yajo commented Oct 20, 2015

#52 (comment) still happening.

def _lead_create_contact(self, lead, name, is_company, parent_id=False):
"""Add VAT to partner."""
return (super(Lead, self.with_context(default_vat=lead.vat))
._lead_create_contact(lead, name, is_company, parent_id))
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the line that fails in Travis, but as you can see this is almost a copy of this other, which is in another OCA repo and Travis is OK. Local tests work too.

Copy link

Choose a reason for hiding this comment

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

Hi @yajo,

Did you try with getattr as the following

return getattr(super(Lead, self.with_context(default_vat=lead.vat)),'_lead_create_contact')(lead, name, is_company, parent_id)

Copy link
Member Author

Choose a reason for hiding this comment

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

It's the same.

@pedrobaeza
Copy link
Member

Maybe some modules are coliisioning. Try to add to your PR an specific .travis.yml for testing only your module with INCLUDE option. See https://github.com/OCA/purchase-workflow/blob/8.0/.travis.yml#L21

@yajo
Copy link
Member Author

yajo commented Oct 21, 2015

I'm trying another idea, let's see...

@yajo
Copy link
Member Author

yajo commented Oct 21, 2015

Finally! Thanks @pedrobaeza, that seems to work (not my previous idea). No idea of what is the conflicting module though.

@pedrobaeza
Copy link
Member

I think the problem is here: https://github.com/OCA/crm/blob/9.0/crm_lead_address_street3/model/crm_lead.py#L30, because there's no corresponding @api.v8 method. Can you please check it and fix it?

@pedrobaeza
Copy link
Member

👍

pedrobaeza added a commit that referenced this pull request Oct 24, 2015
@pedrobaeza pedrobaeza merged commit bde8eeb into OCA:8.0 Oct 24, 2015
@yajo yajo deleted the lead-vat branch October 28, 2015 15:55
@rafaelbn
Copy link
Member

@yajo please fix this module wiith a new PR, same problem as #53 (comment)

@yajo
Copy link
Member Author

yajo commented Oct 29, 2015

See #62

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

Successfully merging this pull request may close these issues.

None yet

5 participants