Merge lp:~camptocamp/ocb-addons/ocb-7.0-fix-1231856-afe into lp:ocb-addons

Proposed by Alexandre Fayolle - camptocamp
Status: Work in progress
Proposed branch: lp:~camptocamp/ocb-addons/ocb-7.0-fix-1231856-afe
Merge into: lp:ocb-addons
Diff against target: 11 lines (+1/-0)
1 file modified
stock/wizard/stock_invoice_onshipping.py (+1/-0)
To merge this branch: bzr merge lp:~camptocamp/ocb-addons/ocb-7.0-fix-1231856-afe
Reviewer Review Type Date Requested Status
Alexandre Fayolle - camptocamp Needs Fixing
Stefan Rijnhart (Opener) Needs Information
Pedro Manuel Baeza code review, no test Approve
Review via email: mp+188013@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

this is used in production

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

LGTM

review: Approve (code review, no test)
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

I must admit that I am forever confused about whether to use the context date or the utc date, but I have the feeling that as this is a wizard run from the interface, you should use context_today. What do you think?

review: Needs Information
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

I'm rejecting this MP, because I think Amit is right and it is the other wizard which needs fixing.

As for which date is to be used I have absolutely no effing idea and I'm totally confused on that topic :-(

review: Disapprove
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) :
review: Needs Fixing

Unmerged revisions

9540. By Alexandre Fayolle - camptocamp

[FIX] add a default value for invoice_date in stock.invoice.onshipping (lp:1231856)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/wizard/stock_invoice_onshipping.py'
2--- stock/wizard/stock_invoice_onshipping.py 2012-10-23 16:05:04 +0000
3+++ stock/wizard/stock_invoice_onshipping.py 2013-09-27 10:47:04 +0000
4@@ -80,6 +80,7 @@
5
6 _defaults = {
7 'journal_id' : _get_journal,
8+ 'invoice_date': fields.date.today,
9 }
10
11 def view_init(self, cr, uid, fields_list, context=None):