Merge lp:~openerp-dev/openobject-client/6.1-opw-575841-gpa into lp:openobject-client/6.1

Proposed by gpa(OpenERP)
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: 2066
Merged at revision: 2078
Proposed branch: lp:~openerp-dev/openobject-client/6.1-opw-575841-gpa
Merge into: lp:openobject-client/6.1
Diff against target: 14 lines (+4/-1)
1 file modified
bin/widget/view/calendar_gtk/ (+4/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-client/6.1-opw-575841-gpa
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email:

Description of the change

Hello Sir,

From calendar view create customer or supplier invoice when select partner it generate error
Step to reproduce:
1. Go to partner (Ex."Axelor") and set payment term.
2. Go to customer invoice OR supplier invoice
open calender view, Double click to create new invoice.
select the partner (Ex."Axelor") which you have set payment term.
and I have faced the following error.
Traceback (most recent call last):
  File "/home/nch/workspace/OpenERP2012/6.1/server/openerp/osv/", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/nch/workspace/OpenERP2012/6.1/server/openerp/osv/", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/nch/workspace/OpenERP2012/6.1/server/openerp/osv/", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/nch/workspace/OpenERP2012/6.1/addons/account/", line 462, in onchange_partner_id
    cr, uid, ids, partner_payment_term, date_invoice)
  File "/home/nch/workspace/OpenERP2012/6.1/addons/account/", line 491, in onchange_payment_term_date_invoice
    pterm_list = pt_obj.compute(cr, uid, payment_term_id, value=1, date_ref=date_invoice)
  File "/home/nch/workspace/OpenERP2012/6.1/addons/account/", line 82, in compute
    next_date = (datetime.strptime(date_ref, '%Y-%m-%d') + relativedelta(days=line.days))
  File "/usr/lib/python2.7/", line 328, in _strptime
ValueError: unconverted data remains: 00:00:00


To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello Ghanshyam,

please write a complete description so that the reviewer can understand what he will expect after executing your defined steps. you wrote the steps to reproduce and finally said *and I have faced the following error.* but which error.. currently I have updated the description but for future MP's please follow the said convention.


Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/widget/view/calendar_gtk/'
2--- bin/widget/view/calendar_gtk/ 2011-10-31 09:12:35 +0000
3+++ bin/widget/view/calendar_gtk/ 2012-06-15 07:17:26 +0000
4@@ -242,7 +242,10 @@
5 # simply display new current day
6 return
7 elif hippo_event.count >= 2: # double clic or more
8- self.screen.context.update({'default_''%Y-%m-%d %H:%M:%S')})
9+ val ='%Y-%m-%d %H:%M:%S')
10+ if self.fields[self.date_start]['type'] == 'date':
11+ val ='%Y-%m-%d')
12+ self.screen.context.update({'default_' +self.date_start:val})
13 self.screen.switch_view(mode='form')


People subscribed via source and target branches