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

[9.0][FIX] contract_show_invoice: Error if create invoice with view context #82

Merged
merged 2 commits into from
Aug 25, 2017

Conversation

carlosdauden
Copy link
Contributor

@pedrobaeza
Copy link
Member

Why this change? It was OK before

@@ -3,26 +3,14 @@
<data>

<record id="act_analytic_invoices" model="ir.actions.act_window">
<field name="context">{'search_default_analytic_account_ids':
[active_id], 'default_analytic_account_ids': active_id}</field>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pedrobaeza this context is useless because analytic_account_ids is a computed field and the search is done by domain

Copy link
Member

Choose a reason for hiding this comment

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

OK, but don't change the rest...

Copy link
Member

Choose a reason for hiding this comment

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

The search is needed anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why is needed?

Copy link
Member

Choose a reason for hiding this comment

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

For filtering the invoices with that analytic contract. It's the way to do it.

@carlosdauden
Copy link
Contributor Author

carlosdauden commented Aug 3, 2017

This module would not be better in analytic branch?

@pedrobaeza
Copy link
Member

Well, yes. And with other name even...

@dreispt
Copy link
Sponsor Member

dreispt commented Aug 10, 2017

This module would not be better in analytic branch?

That's best done in a next version migration (v10).
You can put that on the README's roadmap if you like.

@rafaelbn rafaelbn added this to the 9.0 milestone Aug 24, 2017
@rafaelbn rafaelbn self-requested a review August 24, 2017 17:05
@rafaelbn
Copy link
Member

hi @pedrobaeza , please take a look again. Thanks!

@rafaelbn rafaelbn self-assigned this Aug 24, 2017
@pedrobaeza pedrobaeza merged commit 7620353 into OCA:9.0 Aug 25, 2017
@pedrobaeza pedrobaeza deleted the 9.0-FIX-contract_show_invoice branch August 25, 2017 14:45
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.

None yet

4 participants