cannot change invoice date from invoice view

Bug #452047 reported by Normunds (Alistek)
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Confirmed
Medium
Olivier Dony (Odoo)

Bug Description

Open ERP client ver. 5.0.6. (the same issue in both Linux and Windows)

Steps to reproduce:
1. Create draft invoice.
2. Try to change Date Invoiced with Calendar Widget.
3. Save Invoice
4. Press Reload
5. Date Invoiced field remains empty (as not set)

This leads to impossibility set another date for invoice.
Seen this issue in another view (not invoice, but do not remember where).

Date widget work in Open ERP client ver. 5.0.3

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Andris,

Here is what I did:

1. Created draft invoice with date invoiced 15 oct.
2. Changed Date Invoiced with Calendar Widget. Opened the widget,changed with date 18 Oct.
3. Saved Invoice.
4. Press Reload.
5. Date Invoiced field remains Old one as it was(15 oct.

Here the changes are done, but its just the problem of Calendar that doent take dynamic updates.

Try to click any button on Calendar view and do another click event.Go back to Calendar view. Its changed.

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Its just the problem of Calendar view not getting updated.

Revision history for this message
Normunds (Alistek) (3pm) wrote :

In my case Date Invoiced field never gets saved - it is always empty after Save and Reload. This field only gets value of current date only in state Open and of course greyed out. Please NOTE, that this issue only appears in client 5.0.6 not earlier. This is not about Calendar view - it is about: not possible save anything in Date Invoiced field while invoice is in state Draft or Pro-forma. Download Open ERP client from: http://openerp.com/download/stable/win32/openerp-client-setup-5.0.6.exe and chek it.

Revision history for this message
Normunds (Alistek) (3pm) wrote :

As I saw no interest in researching this issue, done it by myself.

The above mentioned problem can be reproduced with GTK client in MS Windows by setting date in regional settings in any format ending by dot. ( example. dd.mm.YYYY. ). If we set date in such format it is not possible change dates using date widget anywhere. After removing ending dot it is possible to change dates.
In Fedora 9/11 linux date widget with 5.0.6 gtk client works randomly, sometimes works, then doesn't. Haven't done settings research yet for particular two systems where I checked this issue.

This problem can be caused by bugfix of https://bugs.launchpad.net/openobject-client/+bug/434068 bug.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Normunds,

The issue you presented is not occuring at my end as I mentioned.

However, the problem of "." in date format is posted with https://bugs.launchpad.net/openobject-client/+bug/461784.

Our team is investigating for the same.

Thank you.

Changed in openobject-client:
status: New → Invalid
Revision history for this message
Normunds (Alistek) (3pm) wrote :

Once more. If I correctly understand bugfixing, then responsible person should mark that bug (Bug #461784 ) as duplicate and reopen this in state New again.

STEPS TO REPRODUCE:
1. OS WindowsXP Proffesional SP3 32bit with default english install.
-Download Open ERP client from: http://openerp.com/download/stable/win32/openerp-client-setup-5.0.6.exe
2. Install it, launch it. Create Invoice with Date invoiced other than today. Everything works as expected.
3. Go to Start->Settings->Control Panel -> Regional and Language Options
- In Regional Options Tab choose in Standarts and Formats choose Latvian, and Advanced in Language for non-unicode programs also Latvian
- then Apply. And REBOOT
4. open OpenERP client again.
5. Try to change that invoice date other than today, then press Reload button, field stays empty. NOT CORRECT.
6. Then Go to Start->Settings->Control Panel -> Regional and Language Options
- In Regional Options Tab choose in Standarts and Formats press Customize
- In Date Tab remove ending dot in Short Date Format field. Should look like yyyy.MM.dd (no ending dot!!!)
- Apply.
7. Close OpenERP client, reopen it.
8. Try to change that invoice date other than today, then press Reload button, Everything works as expected.

As I told in Fedoras 9/11 linux it works RANDOMLY!!! Do not know how exactly reproduce it.
locale is:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
And I use Latvian keyboard input. (Latvian)

It's look like that that date function is completely messed up in gtk client 5.0.6 , because as we see in (Bug #461784) there is no ending dot in Serbian date default formats.

ONCE MORE: I checked with diff, there are CHANGES in date function in gtk client 5.0.6. if compared with 5.0.3. (IT WORKS)

BTW: For this bug we still use GTK clients 5.0.3 in production, because 5.0.6. is UNUSABLE!!!.

Changed in openobject-client:
status: Invalid → New
Changed in openobject-client:
milestone: none → 5.0.8
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Set milestone to 5.0.8, this won't be ready in time for 5.0.7.

Should be fixed along with bug 503624, although I'm not sure they are duplicates, so I'm not marking them as such.

Both issues might stem from the fix for bug 434068 (rev 990.1.6>996)

Changed in openobject-client:
assignee: nobody → hda (OpenERP) (hda-tinyerp)
Changed in openobject-client:
assignee: hda (OpenERP) (hda-tinyerp) → Olivier Dony (OpenERP) (odo)
Changed in openobject-client:
milestone: 5.0.8 → 5.0.9
Changed in openobject-client:
milestone: 5.0.9 → 5.0.10
Revision history for this message
Normunds (Alistek) (3pm) wrote :

Are you playing ping pong?

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Please, Could you recheck with the last version ?

Thanks

Revision history for this message
Normunds (Alistek) (3pm) wrote :

Hello!
Checked client v.5.0.9 rev. 1068 in linux Fedora11 64bit - not working. Invoice date is not saved, after reload it disappear.

locale of Fedora11 client system:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

OpenERP server (v.5.0.7) date format %d.%m.%Y. for used language.

Changed in openobject-client:
milestone: 5.0.10 → 5.0.11
Revision history for this message
Normunds (Alistek) (3pm) wrote :

This problem is definitely caused by bugfixing as I mentioned.
This approach in widget/view/form_gtk/calendar.py is WRONG!

date1 = DT.strptime(str[:10], self.format)
date = DT.strptime(str[:19], self.format)

Changed in openobject-client:
milestone: 5.0.11 → 5.0.12
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.