Subject: [10.0][FIX] fleet: Fix error, access to self instead of iteration record
Author: Sergio Teruel Albert
Committer: Sergio Teruel Albert

Date Level Type Message
2017-04-03 15:15:30 INFO runbot init Init build environment
2017-04-03 15:18:49 INFO runbot test_base Start test base module
2017-04-03 15:22:12 INFO runbot test_all Start test all modules
2017-04-03 15:39:04 INFO runbot run Start running build 3285398-603-61a0f0
2017-04-06 13:22:41 ERROR server werkzeug:87 _log
Error on request:
Traceback (most recent call last):
  File "/srv/openerp/instances/openerp-oca-runbot/sandbox/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/srv/openerp/instances/openerp-oca-runbot/sandbox/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/service/server.py", line 246, in app
    return self.app(e, s)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/service/wsgi_server.py", line 184, in application
    return application_unproxied(environ, start_response)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/service/wsgi_server.py", line 170, in application_unproxied
    result = handler(environ, start_response)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 1306, in __call__
    return self.dispatch(environ, start_response)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 1280, in __call__
    return self.app(environ, start_wrapped)
  File "/srv/openerp/instances/openerp-oca-runbot/sandbox/lib/python2.7/site-packages/werkzeug/wsgi.py", line 588, in __call__
    return self.app(environ, start_response)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 1471, in dispatch
    result = ir_http._dispatch()
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch
    return super(IrHttp, cls)._dispatch()
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_http.py", line 199, in _dispatch
    return cls._handle_exception(e)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
    return request._handle_exception(exception)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 766, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
    result = request.dispatch()
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 825, in dispatch
    r = self._call_function(**self.params)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 331, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/service/model.py", line 119, in wrapper
    return f(dbname, *args, **kwargs)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 327, in checked_call
    result.flatten()
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 1257, in flatten
    self.response.append(self.render())
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/http.py", line 1250, in render
    return env["ir.ui.view"].render_template(self.template, self.qcontext)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_ui_view.py", line 1029, in render_template
    return self.browse(self.get_view_id(template)).render(values, engine)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/web_editor/models/ir_ui_view.py", line 26, in render
    return super(IrUiView, self).render(values=values, engine=engine)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_ui_view.py", line 1049, in render
    return self.env[engine].render(self.id, qcontext)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 53, in render
    return super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_qweb/qweb.py", line 248, in render
    self.compile(template, options)(self, body.append, values or {})
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_qweb/qweb.py", line 317, in _compiled_fn
    raise e
QWebException: [Errno 17] File exists: '/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/datadir/filestore/3285398-603-61a0f0-base/db'
Traceback (most recent call last):
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_qweb/qweb.py", line 315, in _compiled_fn
    return compiled(self, append, values, options, log)
  File "<template>", line 1, in template_web_login_layout_418
  File "<template>", line 3, in body_call_content_417
  File "<template>", line 5, in set_415
  File "<string>", line 2, in _get_asset
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/tools/cache.py", line 87, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 194, in _get_asset
    return asset.to_html(css=css, js=js, debug=debug, async=async, url_for=(values or {}).get('url_for', lambda url: url))
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_qweb/assetsbundle.py", line 131, in to_html
    response.append('<script %s type="text/javascript" src="%s"></script>' % (async and 'async="async"' or '', url_for(self.js().url)))
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_qweb/assetsbundle.py", line 235, in js
    return self.save_attachment('js', content)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_qweb/assetsbundle.py", line 215, in save_attachment
    attachment = ira.sudo().create(values)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_attachment.py", line 438, in create
    return super(IrAttachment, self).create(values)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/models.py", line 3818, in create
    self._fields[key].determine_inverse(record)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/fields.py", line 999, in determine_inverse
    getattr(records, self.inverse)()
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_attachment.py", line 208, in _inverse_datas
    vals['store_fname'] = self._file_write(value, vals['checksum'])
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_attachment.py", line 108, in _file_write
    fname, full_path = self._get_path(bin_value, checksum)
  File "/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/odoo/addons/base/ir/ir_attachment.py", line 89, in _get_path
    os.makedirs(dirname)
  File "/srv/openerp/instances/openerp-oca-runbot/sandbox/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: '/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/datadir/filestore/3285398-603-61a0f0-base/db'

Error to render compiling AST
OSError: [Errno 17] File exists: '/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3285398-603-61a0f0/datadir/filestore/3285398-603-61a0f0-base/db'
Template: web.login_layout
Path: /templates/t/t/t[2]/t[3]
Node: <t t-call-assets="web.assets_common" t-css="false"/>
2017-04-21 15:06:57 INFO runbot kill Kill build 3285398-603-61a0f0