{"action":"opened","issue":{"url":"https://api.github.com/repos/Yenthe666/auto_backup/issues/62","repository_url":"https://api.github.com/repos/Yenthe666/auto_backup","labels_url":"https://api.github.com/repos/Yenthe666/auto_backup/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/Yenthe666/auto_backup/issues/62/comments","events_url":"https://api.github.com/repos/Yenthe666/auto_backup/issues/62/events","html_url":"https://github.com/Yenthe666/auto_backup/issues/62","id":240064492,"number":62,"title":"Error installing on Odoo v10.","user":{"login":"thiago95macedo","id":14120712,"avatar_url":"https://avatars1.githubusercontent.com/u/14120712?v=3","gravatar_id":"","url":"https://api.github.com/users/thiago95macedo","html_url":"https://github.com/thiago95macedo","followers_url":"https://api.github.com/users/thiago95macedo/followers","following_url":"https://api.github.com/users/thiago95macedo/following{/other_user}","gists_url":"https://api.github.com/users/thiago95macedo/gists{/gist_id}","starred_url":"https://api.github.com/users/thiago95macedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiago95macedo/subscriptions","organizations_url":"https://api.github.com/users/thiago95macedo/orgs","repos_url":"https://api.github.com/users/thiago95macedo/repos","events_url":"https://api.github.com/users/thiago95macedo/events{/privacy}","received_events_url":"https://api.github.com/users/thiago95macedo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-03T04:26:46Z","updated_at":"2017-07-03T04:26:46Z","closed_at":null,"body":"Error installing on Odoo v10.\r\nThe following error message is displayed:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/adax/odoo/odoo/http.py\", line 640, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/opt/adax/odoo/odoo/http.py\", line 677, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/opt/adax/odoo/odoo/http.py\", line 333, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/opt/adax/odoo/odoo/service/model.py\", line 101, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/opt/adax/odoo/odoo/http.py\", line 326, in checked_call\r\n    result = self.endpoint(*a, **kw)\r\n  File \"/opt/adax/odoo/odoo/http.py\", line 935, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/opt/adax/odoo/odoo/http.py\", line 506, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/opt/adax/odoo/addons/web/controllers/main.py\", line 889, in call_button\r\n    action = self._call_kw(model, method, args, {})\r\n  File \"/opt/adax/odoo/addons/web/controllers/main.py\", line 877, in _call_kw\r\n    return call_kw(request.env[model], method, args, kwargs)\r\n  File \"/opt/adax/odoo/odoo/api.py\", line 681, in call_kw\r\n    return call_kw_multi(method, model, args, kwargs)\r\n  File \"/opt/adax/odoo/odoo/api.py\", line 672, in call_kw_multi\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/opt/adax/odoo/odoo/addons/base/module/module.py\", line 410, in button_immediate_install\r\n    return self._button_immediate_function(type(self).button_install)\r\n  File \"/opt/adax/odoo/odoo/addons/base/module/module.py\", line 484, in _button_immediate_function\r\n    modules.registry.Registry.new(self._cr.dbname, update_module=True)\r\n  File \"/opt/adax/odoo/odoo/modules/registry.py\", line 82, in new\r\n    odoo.modules.load_modules(registry._db, force_demo, status, update_module)\r\n  File \"/opt/adax/odoo/odoo/modules/loading.py\", line 339, in load_modules\r\n    loaded_modules, update_module)\r\n  File \"/opt/adax/odoo/odoo/modules/loading.py\", line 237, in load_marked_modules\r\n    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)\r\n  File \"/opt/adax/odoo/odoo/modules/loading.py\", line 156, in load_module_graph\r\n    _load_data(cr, module_name, idref, mode, kind='data')\r\n  File \"/opt/adax/odoo/odoo/modules/loading.py\", line 95, in _load_data\r\n    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)\r\n  File \"/opt/adax/odoo/odoo/tools/convert.py\", line 845, in convert_file\r\n    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)\r\n  File \"/opt/adax/odoo/odoo/tools/convert.py\", line 915, in convert_xml_import\r\n    obj.parse(doc.getroot(), mode=mode)\r\n  File \"/opt/adax/odoo/odoo/tools/convert.py\", line 796, in parse\r\n    self.parse(rec, mode)\r\n  File \"/opt/adax/odoo/odoo/tools/convert.py\", line 799, in parse\r\n    self._tags[rec.tag](rec, de, mode=mode)\r\n  File \"/opt/adax/odoo/odoo/tools/convert.py\", line 707, in _tag_record\r\n    id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)\r\n  File \"/opt/adax/odoo/odoo/addons/base/ir/ir_model.py\", line 1228, in _update\r\n    record = record.create(values)\r\n  File \"/opt/adax/odoo/odoo/addons/base/ir/ir_ui_view.py\", line 362, in create\r\n    return super(View, self).create(self._compute_defaults(values))\r\n  File \"/opt/adax/odoo/odoo/models.py\", line 3838, in create\r\n    self._fields[key].determine_inverse(record)\r\n  File \"/opt/adax/odoo/odoo/fields.py\", line 1000, in determine_inverse\r\n    getattr(records, self.inverse)()\r\n  File \"/opt/adax/odoo/odoo/addons/base/ir/ir_ui_view.py\", line 220, in _inverse_arch\r\n    view.write(data)\r\n  File \"/opt/adax/odoo/odoo/addons/base/ir/ir_ui_view.py\", line 380, in write\r\n    return super(View, self).write(self._compute_defaults(vals))\r\n  File \"/opt/adax/odoo/odoo/models.py\", line 3564, in write\r\n    self._write(old_vals)\r\n  File \"/opt/adax/odoo/odoo/models.py\", line 3715, in _write\r\n    self._validate_fields(vals)\r\n  File \"/opt/adax/odoo/odoo/models.py\", line 1083, in _validate_fields\r\n    raise ValidationError(\"%s\\n\\n%s\" % (_(\"Error while validating constraint\"), tools.ustr(e)))\r\nParseError: \"Error while validating constraint\r\n\r\nModelo n\\xe3o encontrado: db.backup\r\n\r\nContexto de erro:\r\nVeja `Configure Backup`\r\n[view_id: 1063, xml_id: n/a, model: db.backup, parent_id: n/a]\r\nNone\" while parsing /opt/adax/odoo-brasil/auto_backup/bkp_conf_view.xml:4, near\r\n<record model=\"ir.ui.view\" id=\"view_backup_conf_form\">\r\n\t\t\t<field name=\"name\">Configure Backup</field>\r\n\t\t\t<field name=\"model\">db.backup</field>\r\n\t\t\t<field name=\"type\">form</field>\r\n\t\t\t<field name=\"arch\" type=\"xml\">\r\n\t\t\t\t<form string=\"Test\">\r\n\t\t\t\t\t<group col=\"4\" colspan=\"4\">\r\n\t\t\t\t\t\t<separator col=\"2\" string=\"Local backup configuration\"/>\r\n                    \t\t\t</group>\r\n\t\t\t\t\t<group>\r\n\t\t\t\t\t\t<field name=\"host\" colspan=\"2\"/>\r\n\t\t\t\t\t\t<field name=\"name\"/>\r\n\t\t\t\t\t\t<field name=\"port\"/>\r\n\t\t\t\t\t\t<field name=\"bkp_dir\"/>\r\n\t\t\t\t\t\t<field name=\"autoremove\"/>\r\n\t\t\t\t\t\t<field name=\"daystokeep\" attrs=\"{'invisible': [('autoremove','=',False)]}\"/>\r\n\r\n\t\t\t\t\t</group>\r\n\t\t\t\t\t<group col=\"4\" colspan=\"4\">\r\n\t\t\t\t\t\t<separator col=\"2\" string=\"SFTP\"/>\r\n                    \t\t\t</group>\r\n<div style=\"width:50%;border-radius:10px;margin: 10px 0px;padding:15px 10px 15px 10px; background-repeat: no-repeat;background-position: 10px center;color: #9F6000;background-color: #FEEFB3;\" attrs=\"{'invisible': [('sftpwrite','=',False)]}\"><b>Warning:</b> Use SFTP with caution! This writes files to external servers under the path you specify.</div>\r\n\t\t\t\t\t<group>\r\n\t\t\t\t\t\t<field name=\"sftpwrite\"/>\r\n\t\t\t\t\t\t<field name=\"sftpip\" attrs=\"{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}\"/>\r\n\t\t\t\t\t\t<field name=\"sftpusername\" attrs=\"{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}\"/>\r\n\t\t\t\t\t\t<field name=\"sftppassword\" attrs=\"{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}\" password=\"True\"/>\r\n\t\t\t\t\t\t<field name=\"sftppath\" attrs=\"{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}\" placeholder=\"For example: /odoo/backups/\"/>\r\n\t\t\t\t\t\t<field name=\"daystokeepsftp\" attrs=\"{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}\"/>\r\n\t\t\t\t\t\t<field name=\"sendmailsftpfail\" attrs=\"{'invisible': [('sftpwrite','=',False)]}\"/>\r\n\t\t\t\t\t\t<field name=\"emailtonotify\" attrs=\"{'invisible':['|',('sendmailsftpfail', '==', False),       ('sftpwrite', '==', False)],'required':[('sendmailsftpfail', '==', True)]}\"/>\r\n\t\t\t\t\t\t<button name=\"test_sftp_connection\" type=\"object\" attrs=\"{'invisible': [('sftpwrite','=',False)]}\" string=\"Test SFTP Connection\" icon=\"gtk-network\"/>\r\n\t\t\t\t\t</group>\r\n                    \t\t\t<separator string=\"Help\" colspan=\"2\"/>\r\n                    \t\t\t<div>\r\n\t\t\t\t\t\tThis configures the scheduler for automatic backup of the given database running on given host at given port on regular intervals.\r\n\t\t\t\t\t\t<br/>\r\n\t\t\t\t\t\tAutomatic backups of the database can be scheduled as follows: \r\n\t\t\t\t\t\t<ol>\r\n\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\tGo to Settings / Technical / Automation / Scheduled Actions.\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\tSearch the action named 'Backup scheduler'.\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\tSet the scheduler to active and fill in how often you want backups generated.\r\n\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t</ol>\r\n\t\t\t\t\t\t<p style=\"font-size:18px;\">\r\n\t\t\t\t\t\tNeed more help? <a href=\"mailto:yenthe.vanginneken@vanroey.be\">Contact us!</a>\r\n\t\t\t\t\t\t</p>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</form>\r\n\t\t\t</field>\r\n\t</record>"}}
{"actor":{"display_login":"thiago95macedo"}}