{"action":"created","issue":{"url":"https://api.github.com/repos/slmoebius/builder/issues/13","labels_url":"https://api.github.com/repos/slmoebius/builder/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/slmoebius/builder/issues/13/comments","events_url":"https://api.github.com/repos/slmoebius/builder/issues/13/events","html_url":"https://github.com/slmoebius/builder/issues/13","id":75127959,"number":13,"title":"Error on creating new module","user":{"login":"akram1","id":6378526,"avatar_url":"https://avatars.githubusercontent.com/u/6378526?v=3","gravatar_id":"","url":"https://api.github.com/users/akram1","html_url":"https://github.com/akram1","followers_url":"https://api.github.com/users/akram1/followers","following_url":"https://api.github.com/users/akram1/following{/other_user}","gists_url":"https://api.github.com/users/akram1/gists{/gist_id}","starred_url":"https://api.github.com/users/akram1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akram1/subscriptions","organizations_url":"https://api.github.com/users/akram1/orgs","repos_url":"https://api.github.com/users/akram1/repos","events_url":"https://api.github.com/users/akram1/events{/privacy}","received_events_url":"https://api.github.com/users/akram1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-11T07:54:46Z","updated_at":"2015-07-04T03:32:19Z","closed_at":null,"body":"Creating failed with this error\r\n\r\nopenerp.http: Exception during JSON request handling.\r\nTraceback (most recent call last):\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 530, in handle_exception\r\nreturn super(JsonRequest, self).handle_exception(exception)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 567, in dispatch\r\nresult = self._call_function(*self.params)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 303, in _call_function\r\nreturn checked_call(self.db, *args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/service/model.py\", line 113, in wrapper\r\nreturn f(dbname, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 300, in checked_call\r\nreturn self.endpoint(a, *kw)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 796, in __call\r\nreturn self.method(args, *kw)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 396, in response_wrap\r\nresponse = f(args, *kw)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/addons/web/controllers/main.py\", line 936, in call_kw\r\nreturn self.call_kw(model, method, args, kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/addons/web/controllers/main.py\", line 928, in call_kw\r\nreturn getattr(request.registry.get(model), method)(request.cr, request.uid, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 241, in wrapper\r\nreturn old_api(self, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 336, in old_api\r\nresult = method(recs, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 4059, in create\r\nrecord = self.browse(self._create(old_vals))\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 239, in wrapper\r\nreturn new_api(self, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 462, in new_api\r\nresult = method(self._model, cr, uid, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 4231, in _create\r\nrecs.modified(self._fields)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 239, in wrapper\r\nreturn new_api(self, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 5627, in modified\r\nspec += self._fields[fname].modified(self)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/fields.py\", line 1479, in modified\r\nspec = super(_Relational, self).modified(records)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/fields.py\", line 960, in modified\r\ntarget = env[field.model_name].search([(path, 'in', records.ids)])\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 239, in wrapper\r\nreturn new_api(self, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 462, in new_api\r\nresult = method(self._model, cr, uid, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 1639, in search\r\nreturn self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 241, in wrapper\r\nreturn old_api(self, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 4621, in _search\r\nquery = self._where_calc(cr, user, args, context=context)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 241, in wrapper\r\nreturn old_api(self, args, *kwargs)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 4444, in _where_calc\r\ne = expression.expression(cr, user, domain, self, context)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/osv/expression.py\", line 646, in __init\r\nself.parse(cr, uid, context=context)\r\nFile \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/osv/expression.py\", line 827, in parse\r\nelif len(path) > 1 and column._type == 'many2one' and column._auto_join:\r\nAttributeError: 'NoneType' object has no attribute '_type'"},"comment":{"url":"https://api.github.com/repos/slmoebius/builder/issues/comments/118456902","html_url":"https://github.com/slmoebius/builder/issues/13#issuecomment-118456902","issue_url":"https://api.github.com/repos/slmoebius/builder/issues/13","id":118456902,"user":{"login":"akram1","id":6378526,"avatar_url":"https://avatars.githubusercontent.com/u/6378526?v=3","gravatar_id":"","url":"https://api.github.com/users/akram1","html_url":"https://github.com/akram1","followers_url":"https://api.github.com/users/akram1/followers","following_url":"https://api.github.com/users/akram1/following{/other_user}","gists_url":"https://api.github.com/users/akram1/gists{/gist_id}","starred_url":"https://api.github.com/users/akram1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akram1/subscriptions","organizations_url":"https://api.github.com/users/akram1/orgs","repos_url":"https://api.github.com/users/akram1/repos","events_url":"https://api.github.com/users/akram1/events{/privacy}","received_events_url":"https://api.github.com/users/akram1/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T03:32:19Z","updated_at":"2015-07-04T03:32:19Z","body":"I tried it in my Odoo it gives me this error upon creating a module.\n\nOdoo Server Error\n\n------------------------------------------------------------------------\n\nTraceback (most recent call last):\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 537, in _handle_exception\n     return super(JsonRequest, self)._handle_exception(exception)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 574, in dispatch\n     result = self._call_function(**self.params)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 310, in _call_function\n     return checked_call(self.db, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/service/model.py\", line 113, in wrapper\n     return f(dbname, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 307, in checked_call\n     return self.endpoint(*a, **kw)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 803, in __call__\n     return self.method(*args, **kw)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/http.py\", line 403, in response_wrap\n     response = f(*args, **kw)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/addons/web/controllers/main.py\", line 944, in call_kw\n     return self._call_kw(model, method, args, kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/addons/web/controllers/main.py\", line 936, in _call_kw\n     return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 241, in wrapper\n     return old_api(self, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 336, in old_api\n     result = method(recs, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 4077, in create\n     record = self.browse(self._create(old_vals))\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 239, in wrapper\n     return new_api(self, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 462, in new_api\n     result = method(self._model, cr, uid, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 4249, in _create\n     recs.modified(self._fields)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 239, in wrapper\n     return new_api(self, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 5647, in modified\n     spec += self._fields[fname].modified(self)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/fields.py\", line 1479, in modified\n     spec = super(_Relational, self).modified(records)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/fields.py\", line 960, in modified\n     target = env[field.model_name].search([(path, 'in', records.ids)])\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 239, in wrapper\n     return new_api(self, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 462, in new_api\n     result = method(self._model, cr, uid, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 1645, in search\n     return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 241, in wrapper\n     return old_api(self, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 4641, in _search\n     query = self._where_calc(cr, user, args, context=context)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/api.py\", line 241, in wrapper\n     return old_api(self, *args, **kwargs)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/models.py\", line 4464, in _where_calc\n     e = expression.expression(cr, user, domain, self, context)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/osv/expression.py\", line 646, in __init__\n     self.parse(cr, uid, context=context)\n   File \"/media/akram/Data/projects/servers/Odoo/odoo8/openerp/osv/expression.py\", line 827, in parse\n     elif len(path) > 1 and column._type == 'many2one' and column._auto_join:\nAttributeError: 'NoneType' object has no attribute '_type'\n\nInstalling Module Builder went fine with these error\n\n2015-07-04 03:04:37,554 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,590 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,622 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,659 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,695 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,730 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,767 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,801 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,835 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,869 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,905 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,936 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n2015-07-04 03:04:37,959 26700 ERROR 8-1 openerp.tools.yaml_import: You \nhave an empty block in your tests.\n\n2015-07-04 03:05:34,701 26700 ERROR 8-1 openerp.modules.loading: At \nleast one test failed when loading the modules.\n\nI tested it on a new Odoo 8 build 3d/7m/2015 installation. System \nconfiguration is\n     Postgres SQL\n         Version        9.4.1\n         Location        runtime/bin/pgsql\n         Port             65432\n         Addons        geos-3.4.2\n                          proj4-4.8.0\n                         postgis-2.1.6\n                         swig-3.0.5\n     Python\n         Version        2.7.8\n         Location        runtime/bin/python\n         Addons        aeroo-lib- 1.2.0\n                         argparse-1.3.0\n                         Babel-1.3\n                         BeautifulSoup-3.2.1\n                         beautifulsoup4-4.3.2\n                         bz2file-0.98\n                         crypto-1.3.4\n                         decorator-3.4.0\n                         daemonize-2.3.1\n                           docutils-0.12\n                         erppeek-1.6.1\n                         fabric-1.10.1\n                         feedparser-5.1.3\n                         gdal-1.9.1\n                         gdata-2.0.18\n                         genshi-0.7\n                         geoip2-2.1.0\n                          geojson-3.6.5\n                         geopy-0.95.1\n                         gevent_psycopg2 -0.0.3\n                         gevent-1.0.1\n                         graphviz-0.4.3\n                         greenlet-0.4.5\n                         jcconv-0.2.3\n                         ipdb-0.8\n                         Jinja2-2.7.3\n                         jsonrpc2-0.4.1\n                          lxml-3.4.1\n                         M2Crypto-0.22.3\n                         Mako-1.0.1\n                         markdown-2.6.2\n                         MarkupSafe-0.23\n                         mock-1.0.1\n                         mygengo-1.3.3\n                         openoffice-python-0.1.p\n                          passlib-1.6.2\n                         Pillow-2.8.1\n                         pip-7.0.3\n                         psutil-2.2.0\n                         psycogreen-1.0\n                         psycopg2-2.6\n                         pudb-2015.2\n                         py2cairo-1.10.0\n                         py3o.template\n                         PyChart-1.39\n                         pycups-1.9.72\n                         pydot-1.0.2\n                         pygeoip-0.3.2\n                         pygobject-3.16.0\n                         pyinotify-0.9.6\n                         pyparsing-2.0.3\n                         pyPdf-1.13\n                          pyPDF2-1.24\n                         pyserial-2.7\n                         pysqlite-2.6.3\n                         python-dateutil-2.4.2\n                         python-ldap-2.4.19\n                         python-openid-2.2.5\n                         pytz-2014.10\n                         pyusb-1.0.0b2\n                         PyWebDAV-0.9.8\n                         PyYAML-3.11\n                         qrcode-5.1\n                         reportlab-3.1.44\n                         requests-2.6.0\n                         setuptools-15.0\n                         shapely-1.5.7\n                         simplejson-3.6.5\n                         six-1.9.0\n                         South-1.0.2\n                         suds-0.4\n                         ulif.openoffice\n                         unittest2-0.8.0\n                         uno-0.3.3\n                         vatnumber-1.2\n                          vobject-0.6.6\n                         Werkzeug-0.10.4\n                         wsgiref-0.1.2\n                          xlwt-0.7.5\n                          zkemapi-0.0.1\n                         zsi-lxml-2.0-rc3\n\n     Others         bzip2-1.0.6\n                         cairo-1.14.2\n                         curl-7.41.0\n                         cyrus-sasl-2.1.23\n                          db-5.3.21\n                         fontconfig-2.11.0\n                          freetype-2.5.5\n                          gdbm-1.8.3\n                         GeoIP\n                         gettext-0.18.1.1\n                         giflib-5.1.1\n                         gdal-2.0.0\n                         glib-2.44.0\n                         gobject-introspection-1.44.0\n                          graphviz-2.38.0\n                          jpeg-9a\n                         libedit-20150325-3.1\n                          libev-4.19\n                         libevent-2.0.17\n                         libffi-3.2.1\n                         libgcrypt-1.6.2\n                         libgd-2.1.1\n                         libgnutls-3.3.13\n                         libgpg-error-1.17\n                          libiconv-1.13.1\n                         libpng-1.6.16\n                          libxml2-2.9.2\n                         libxslt-1.1.28\n                         ncurses-5.9\n                         openjpeg-1.5.1\n                         openldap-2.4.40\n                          openssh-5.8p1\n                         openssl-1.0.2a\n                         pcre-8.34\n                         pixman-0.32.6\n                          pkg-config-0.28\n                         readline-6.2\n                          sqlite3\n                         tiff-4.0.3\n                         wkhtmltopdf-0.12.2.1\n                         zeromq-3.2.3\n                         zlib-1.2.8\n\n\n\n\nOn 03 يول, 2015 م 03:56, max3903 wrote:\n>\n> I tried on version 8.0. I will give it another shot today.\n>\n> —\n> Reply to this email directly or view it on GitHub \n> <https://github.com/slmoebius/builder/issues/13#issuecomment-118340089>.\n>\n\n"}}