c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26191
[Bug 790636] Re: UOM can't save
hello,
The above merge proposal fixes the issue that arises due to the commit @ 3417.6.6 vmt@xxxxxxxxxxx-20110420141407-au0oanwjc0t15vy5 which changed the variable name 'dbname' to 'db_name'
which would give the traceback before firing any constraint messages.
NameError: global name 'db_name' is not defined
Note: The actual bug is already being tracked at https://bugs.launchpad.net/openobject-addons/+bug/793407
Thanks,
** Description changed:
trunk, revno 4750
From sales/Configuration/Product/Units of measure
Create new record and save it, you have faced the following traceback
- db.cursor:bad query: insert into "product_uom" (id,"active","name","factor","rounding","category_id","uom_type",create_uid,create_date) values (13,E'True',E'dss',1.0,E'0.010',2,E'reference',1,now())
Traceback (most recent call last):
- File "/home/ara/rdtools/server/trunk/openerp/sql_db.py", line 136, in execute
- res = self._obj.execute(query, params)
- IntegrityError: duplicate key value violates unique constraint "product_uom_factor_category_id_uniq"
+ File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/netsvc.py", line 428, in dispatch
+ result = ExportService.getService(service_name).dispatch(method, auth, params)
+ File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/service/web_services.py", line 579, in dispatch
+ res = fn(db, uid, *params)
+ File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 133, in wrapper
+ self.abortResponse(1, _('Constraint Error'), 'warning',
+ File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 117, in _
+ return tr(src, 'code')
+ File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 106, in tr
+ cr = sql_db.db_connect(db_name).cursor()
+ NameError: global name 'db_name' is not defined
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/790636
Title:
UOM can't save
Status in OpenERP Server:
Fix Committed
Bug description:
trunk, revno 4750
From sales/Configuration/Product/Units of measure
Create new record and save it, you have faced the following traceback
Traceback (most recent call last):
File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/netsvc.py", line 428, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/service/web_services.py", line 579, in dispatch
res = fn(db, uid, *params)
File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 133, in wrapper
self.abortResponse(1, _('Constraint Error'), 'warning',
File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 117, in _
return tr(src, 'code')
File "/home/nch/workspace/OpenERP2011/Trunk/server/openerp/osv/osv.py", line 106, in tr
cr = sql_db.db_connect(db_name).cursor()
NameError: global name 'db_name' is not defined
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/790636/+subscriptions
References