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 of account_invoice_blocking to 10.0 #197

Merged
merged 2 commits into from
Oct 2, 2017

Conversation

adrienpeiffer
Copy link
Contributor

No description provided.

@pedrobaeza pedrobaeza mentioned this pull request Oct 17, 2016
34 tasks
from openerp.tests.common import TransactionCase
from openerp import workflow
from odoo.tests.common import TransactionCase
from odoo import workflow
Copy link
Member

Choose a reason for hiding this comment

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

Workflow in v10?

Copy link

@Garamotte Garamotte left a comment

Choose a reason for hiding this comment

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

Some minor comments.
LGTM (code review).

_inherit = 'account.invoice'

@api.model
def _get_move_line(self, invoice):

Choose a reason for hiding this comment

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

Please convert this method from @api.model to @api.multi + self.ensure_one() without the self recordset argument, to follow standard changes since v10.

('invoice_id', '=', invoice.id)])

@api.model
def _update_blocked(self, invoice, value):

Choose a reason for hiding this comment

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

Please convert this method from @api.model to @api.multi without the self recordset argument, to follow standard changes since v10.


Usage
=====

Copy link
Member

Choose a reason for hiding this comment

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

As better you describe how to use the module, as much more easier is to test it, so more people will be able to review it. It's just a recommendation. I rebuilding runbot for testing

@adrienpeiffer adrienpeiffer force-pushed the 10-mig-account_invoice_blocking-ape branch from e065573 to 6ad202d Compare May 30, 2017 08:52
@adrienpeiffer
Copy link
Contributor Author

@sylvain-garancher @rafaelbn Thanks for the review

@adrienpeiffer
Copy link
Contributor Author

Travis error is unrelated #269

@gurneyalex gurneyalex closed this May 31, 2017
@gurneyalex
Copy link
Member

triggering a rebuild

Copy link
Contributor

@ThomasBinsfeld ThomasBinsfeld left a comment

Choose a reason for hiding this comment

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

Functional and code review 👍

@pedrobaeza pedrobaeza merged commit b7bc1dd into OCA:10.0 Oct 2, 2017
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

6 participants