Merge lp:~arthru/ocb-addons/fix-1334665 into lp:ocb-addons

Proposed by arthru
Status: Rejected
Rejected by: Holger Brunn (Therp)
Proposed branch: lp:~arthru/ocb-addons/fix-1334665
Merge into: lp:ocb-addons
Diff against target: 11 lines (+1/-0)
1 file modified
procurement/schedulers.py (+1/-0)
To merge this branch: bzr merge lp:~arthru/ocb-addons/fix-1334665
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) Disapprove
Pedro Manuel Baeza code review Approve
Raphaël Valyi - http://www.akretion.com Approve
Review via email: mp+224625@code.launchpad.net

Description of the change

This fixes the bug #1334665

To post a comment you must log in.
Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Hello,

one could wonder if it wouldn't be better to return the value of the _procure_confirm or _procure_orderpoint_confirm above.

But as there are two methods and not just one, we couldn't just favor the return value of just one of the two methods.

Moreover, the return value of these methods is already a meaningless dummy {}.

So overall, I see no simpler better choice that this return True currently.
Therefor I approve the merge proposal.

review: Approve
Revision history for this message
arthru (arthru) wrote :

Really love it when the review is longer than the commit ;)

Thanks for your review !

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

As stated by Raphael, it's the best question.

Regards

review: Approve (code review)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

s/question/solution

Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

Development for 7.0 has moved to github on https://github.com/OCA/ocb - please move your merge proposal there if it is still valid.

(I close and reject this in order to have a cleaner overview for 6.1 MPs which indeed have to be done on launchpad)

review: Disapprove

Unmerged revisions

10220. By Arthur Vuillard <email address hidden>

Fix bug lp:1334665

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'procurement/schedulers.py'
2--- procurement/schedulers.py 2014-03-10 08:54:20 +0000
3+++ procurement/schedulers.py 2014-06-26 13:37:41 +0000
4@@ -41,6 +41,7 @@
5 self._procure_confirm(cr, uid, use_new_cursor=use_new_cursor, context=context)
6 self._procure_orderpoint_confirm(cr, uid, automatic=automatic,\
7 use_new_cursor=use_new_cursor, context=context)
8+ return True
9
10 def _procure_confirm(self, cr, uid, ids=None, use_new_cursor=False, context=None):
11 '''