[6.0.2] Error when creating new product
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 2 |
Bug Description
I deleted product category which was by default "All products" and now I can't create new product. Problem is - "/bin/addons/
Environment Information :
System : Linux-2.
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-31-generic
Operating System Version : #61-Ubuntu SMP Fri Apr 8 18:24:35 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : lt_LT.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
context))
File "/home/
defaults[f] = self._defaults[
File "/home/
res = md.get_
File "/home/
result2 = fn(self2, cr, *args[:
File "/home/
data_id = self._get_id(cr, uid, module, xml_id)
File "/home/
result2 = fn(self2, cr, *args[:
File "/home/
raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to product.cat0
Related branches
- qdp (OpenERP): Needs Information
- Rucha (Open ERP) (community): Approve
- Rohan Nayani(Open ERP) (community): Needs Resubmitting
-
Diff: 18 lines (+6/-2)1 file modifiedproduct/product.py (+6/-2)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
After updating product module I get back this deleted category, but I don't think it is good to prevent user to delete category which can make an error like this.