warning returned by on_change changes decimal separator and looses selection

Bug #658387 reported by Dukai Gábor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE OpenObject Client
New
Undecided
Unassigned

Bug Description

Hi!
This can easily be seen with languages that use comma (,) as a decimal separator. Set up a product that has packaging information > 1. Open a sales order line and choose that product.

What should happen:
1. A message box appears that the user didn't choose the packaging quantity.
2. The product qty should stay 1,00
3. The value of the product qty field should be selected (the number 1,00 in blue colour).

What happens:
1. The message box appears.
2. The product qty changes to 1.00 (with dot). It uses a dot in every language setting.
3. The field is selected but the value is not, so the user has to press the delete button for a long time to delete all the 4 characters in the field.

Commenting out the following code in Koo/Model/Record.py/Record.callOnChange() solves the problem. That means the warning message box is the cause.

   if warning:
    Notifier.notifyWarning(warning['title'], warning['message'])

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.