openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #14088
[Bug 672469] Re: [6.0RC1] not able to install all modules - wizards fail
openerp-server: 6.0.4, revno 3632
openerp-client: revno: 6.0.4, 4862
addons: revno: 5305
ubuntu: 12.4
firefox: 14.0.1
>>> import xmlrpclib
>>> user = "cubells"
>>> passwd = "cubellspw"
>>> db = "cubellsdb"
>>> sock_common = xmlrpclib.ServerProxy ('http://localhost:8069/xmlrpc/common')
>>> uid = sock_common.login(db, user, passwd)
>>> sock = xmlrpclib.ServerProxy('http://localhost:8069/xmlrpc/object')
>>> product_template = {
... 'name': 'Cheese burger',
... 'supply_method': 'buy',
... 'list_price': 4.5,
... 'purchase_ok' : True,
... 'type' : 'product',
... 'procure_method': 'make_to_stock',
... 'sale_ok': True,
... 'uom_id': 1,
... 'company_id': 1,
... 'uom_po_id': 1,
... 'categ_id': 1,
... 'rental': False,
... }
>>> product_id = sock.execute(db, uid, passwd, 'product.template', 'create', product_template)
>>> product_product = {
... 'product_template_id': product_id,
... 'default_code': 123456,
... 'name_template': 'Cheese burger',
... 'active': True,
... }
>>> product_id = sock.execute(db, uid, passwd, 'product.product', 'create', product_product)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
return u.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault warning -- Integrity Error
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set
[object with reference: name - name]: 'Traceback (most recent call last):\n File "/usr/local/lib/python2.7/dist-packages/openerp-server/netsvc.py", line 489, in dispatch\n result = ExportService.getService(service_name).dispatch(method, auth, params)\n File "/usr/local/lib/python2.7/dist-packages/openerp-server/service/web_services.py", line 599, in dispatch\n res = fn(db, uid, *params)\n File "/usr/local/lib/python2.7/dist-packages/openerp-server/osv/osv.py", line 154, in wrapper\n self.abortResponse(1, _(\'Integrity Error\'), \'warning\', msg)\n File "/usr/local/lib/python2.7/dist-packages/openerp-server/netsvc.py", line 70, in abortResponse\n raise Exception("%s -- %s\\n\\n%s"%(origin, description, details))\nException: warning -- Integrity Error\n\nThe operation cannot be completed, probably due to the following:\n- deletion: you may be trying to delete a record while other records still reference it\n- creation/update: a mandatory field is not correctly set\n\n[object with reference: name - name]\n'>
>>>
Openerp server log says:
ERROR:db.cursor:bad query: insert into "product_template" (id,"supply_method","list_price","standard_price","mes_type","uom_id","cost_method","categ_id","uos_coeff","sale_delay","procure_method","sale_ok","purchase_ok","company_id","produce_delay","uom_po_id","rental","type",create_uid,create_date) values (2627,'buy','1.00','1.00','fixed',1,'standard',1,1.0,7.0,'make_to_stock','True','True',1,1.0,1,'False','consu',3,now())
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-server/sql_db.py", line 131, in execute
res = self._obj.execute(query, params)
IntegrityError: null value in column "name" violates not-null constraint
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/672469
Title:
[6.0RC1] not able to install all modules - wizards fail
Status in OpenERP Addons (modules):
Fix Released
Bug description:
please check and notify the community once the installation process
runs without errors.
All modules which can be choosen using the install wizard must install
without error.
currently some modules in hr fails.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/672469/+subscriptions