Deleting a new, unsaved record causes ValueError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP sa GTK client R&D |
Bug Description
Here's a detailed description of one way to cause this error:
1. Create a new database with sample data and any profile. Complete the installation.
2. Go to the Partners screen and click the New button to create a new partner.
3. Type "Foo" in the Name field.
4. Click the Delete button.
5. A dialog box appears, "Record is not saved ! Do you want to clear current record?" Click the OK button.
Expected behaviour:
Either all the fields are cleared back to default values, or the screen loads an existing partner and takes you out of the "new record" mode.
Actual behaviour:
None of the fields change value. An error appears in the client error log:
Traceback (most recent call last):
File "/mnt/workspace
res = wid.handlers[
File "/mnt/workspace
id = self.screen.
File "/mnt/workspace
idx = self.models.
ValueError: list.index(x): x not in list
I am testing this with OpenERP 5.0.15 running on Ubuntu 5.0.15.
Related branches
- OpenERP sa GTK client R&D: Pending requested
-
Diff: 271 lines (+46/-25)10 files modifiedbin/modules/gui/main.py (+4/-2)
bin/modules/gui/window/win_import.py (+13/-4)
bin/openerp-client.py (+2/-0)
bin/openerp.glade (+2/-0)
bin/widget/model/field.py (+1/-1)
bin/widget/screen/screen.py (+1/-1)
bin/widget/view/calendar_gtk/parser.py (+3/-2)
bin/widget/view/form_gtk/reference.py (+1/-1)
bin/widget/view/list.py (+16/-9)
bin/widget_search/selection.py (+3/-5)
Changed in openobject-client: | |
assignee: | nobody → OpenERP sa GTK client R&D (openerp-dev-gtk) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-client: | |
milestone: | none → 6.0 |
I found the problem and created a merge proposal with my fix.