[6.1] error during csv import

Bug #937848 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Medium
OpenERP sa GTK client R&D

Bug Description

Traceback (most recent call last):
  File "/home/gass/OpenERP/gtk/6.1/bin/common/common.py", line 236, in sig_call_child
    return f(w, *all_args)
  File "/home/gass/OpenERP/gtk/6.1/bin/modules/gui/main.py", line 1334, in _sig_child_call
    res = wid.handlers[button_name]()
  File "/home/gass/OpenERP/gtk/6.1/bin/modules/gui/window/form.py", line 307, in sig_import
    res = win.go()
  File "/home/gass/OpenERP/gtk/6.1/bin/modules/gui/window/win_import.py", line 259, in go
    return import_csv(csv, inverted, self.model, self.fields_invert, context=self.context, parent=self.parent)
  File "/home/gass/OpenERP/gtk/6.1/bin/modules/gui/window/win_import.py", line 72, in import_csv
    common.message_box(_('Importation Error !'), unicode(error))
  File "/home/gass/OpenERP/gtk/6.1/bin/common/common.py", line 573, in message_box
    win = ui_get_object('dia_message_box')
NameError: global name 'ui_get_object' is not defined

the import vanishes without any further trace

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Ferdinand (office-chricar) wrote :

the problem is that relevant error messages are only visible if the GTK client is started wiht debug_rpc_answer

DEBUG_RPC_ANSWER:rpc.result:(-1, {'product_line': 'fix', 'name': 'Jam Ananas', 'type': 'product', 'uom_id': 2, 'name_engl': 'Jam Pineapple', 'categ_id': 11}, u'Line 1 : ValidateError\nFehler w\xe4hrend der Pr\xfcfung des Feldes field(s) uom_id: Fehler: Die Standard Mengeneinheit sowie die Einkauf Mengeneinheit muss in derselben Kategorie sein.', '')
Traceback (most recent call last):

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Dr. Ferdinand,

This is a good catch really, a hidden one came out of the box. Very much appreciable.

We have attached merges for both 6.1 and trunk as above.

Hope this helps and gets merged.

Thanks,
Serpent Consulting Services.

Changed in openobject-client:
status: New → Confirmed
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

To Update, Regression was added by revision http://bazaar.launchpad.net/~openerp/openobject-client/6.1/revision/1858.2.8 which was merged to official release by revision http://bazaar.launchpad.net/~openerp/openobject-client/6.1/revision/1972.

Thanks.

Revision history for this message
Ferdinand (office-chricar) wrote :

this again shows the urgent need of extensive quality control

Changed in openobject-client:
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
importance: Undecided → Medium
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix from SerpentCS for the typo was merged at revision 2053 rev-id: <email address hidden>.

Thanks a lot for reporting and contributing the fix!

Changed in openobject-client:
milestone: none → 6.1
status: Confirmed → Fix Released
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.