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

Proposed by gpa(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openerp-web/6.1-opw-575841-gpa
Merge into: lp:openerp-web/6.1
Diff against target: 17 lines (+6/-1)
1 file modified
addons/web_calendar/static/src/js/calendar.js (+6/-1)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/6.1-opw-575841-gpa
Reviewer Review Type Date Requested Status
Xavier (Open ERP) (community) Needs Information
Naresh(OpenERP) Pending
Review via email: mp+110478@code.launchpad.net

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.

Thanks

To post a comment you must log in.
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Using the latest 6.1 (e.g. on runbot) I am not able to reproduce this issue:

* Go to Sales > Address Book > Customers
* Select a customer (e.g. Axelor)
* Go to tab Accounting
* Set "Payment Term" to "30 Days End of Month"
* Save
* Go to Accounting > Customers > Customer Invoices
* Switch to Calendar View
* Double-click on any day
* Set "Customer" to previous (e.g. "Axelor")
* Save

No problem I can see.

review: Needs Information
Revision history for this message
Ravi Gohil (OpenERP) (rgo-openerp) wrote :

Here, https://docs.google.com/open?id=0B_aen0d5R_MTZTJxNjRsdE5jNUE, I created a video that will help you reproduce the issue.

Thanks.

Unmerged revisions

2362. By gpa(OpenERP)

[FIX] from calendar view create customer or supplier invoice when select partner it generate error: (Maintenance Case : 575841)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web_calendar/static/src/js/calendar.js'
2--- addons/web_calendar/static/src/js/calendar.js 2012-04-17 10:15:17 +0000
3+++ addons/web_calendar/static/src/js/calendar.js 2012-06-15 07:18:55 +0000
4@@ -362,7 +362,12 @@
5 var data = {
6 name: event_obj.text
7 };
8- data[this.date_start] = openerp.web.datetime_to_str(event_obj.start_date);
9+ if (this.fields[this.date_start]['type'] == 'date') {
10+ data[this.date_start] = openerp.web.date_to_str(event_obj.start_date);
11+ }
12+ else {
13+ data[this.date_start] = openerp.web.datetime_to_str(event_obj.start_date);
14+ }
15 if (this.date_stop) {
16 data[this.date_stop] = openerp.web.datetime_to_str(event_obj.end_date);
17 }