can not create new product category

Bug #389795 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
Ujjvala Collins

Bug Description

creating a new product category

openerp-client -l info

WARNING:translate:Kann locale en_US.UTF-8 nicht setzen

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/openerp-client/modules/gui/main.py", line 1287, in _sig_child_call
    res = wid.handlers[button_name]()
  File "/usr/lib64/python2.6/site-packages/openerp-client/modules/gui/window/form.py", line 285, in sig_new
    self.screen.new()
  File "/usr/lib64/python2.6/site-packages/openerp-client/widget/screen/screen.py", line 394, in new
    model = self.models.model_new(default, self.domain, ctx)
  File "/usr/lib64/python2.6/site-packages/openerp-client/widget/model/group.py", line 239, in model_new
    newmod.default_get(domain, ctx)
  File "/usr/lib64/python2.6/site-packages/openerp-client/widget/model/record.py", line 162, in default_get
    self.set_default(val)
  File "/usr/lib64/python2.6/site-packages/openerp-client/widget/model/record.py", line 207, in set_default
    self.mgroup.mfields[fieldname].set_default(self, value)
  File "/usr/lib64/python2.6/site-packages/openerp-client/widget/model/field.py", line 106, in set_default
    res = self.set(model, value)
  File "/usr/lib64/python2.6/site-packages/openerp-client/widget/model/field.py", line 266, in set
    model.value[self.name] = result[0]
IndexError: list index out of range

in ir_property I found a record with
res_id empty
name=property_account_expense_categ
value=account.account,5
and account 5 does not exist
had to remove this and similar resources

it could well be that this comes from a migration error AND orm modification, because this error didn't occur since migration.

crosscheck
branch-server 1795
branch-addons 2329
it is possible to delete an account which is used in product_category properties and defaults
the pointers are correctly removed, but IMHO a warning should be issued if "used" accounts are removed.

BTW I do not understand bazaar ... how can revision numbers go backwards?
bzr revno
970
> bzr pull
Using saved parent location: http://bazaar.launchpad.net/~openerp/openobject-client/5.0/
 M bin/po/fr.po
 M bin/widget/view/form_gtk/many2one.py
 M bin/widget/view/form_gtk/textbox_tag.py
All changes applied successfully.
Now on revision 950.

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

BTW symptoms are strange
GTK - no new resource can be created, the first exiting is shown
WEB- crashes with "Access denied"

Changed in openobject-server:
assignee: nobody → uco (Open ERP) (uco-openerp)
status: New → Confirmed
status: Confirmed → In Progress
Changed in openobject-server:
importance: Undecided → Medium
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed by revision revision-id: <email address hidden> and
revision-id: <email address hidden>.

Would you please check this and notify us?

Expecting your reply as this is a bit critical issue.

Thank you.

Changed in openobject-server:
status: In Progress → 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.