{"action":"opened","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/8064","labels_url":"https://api.github.com/repos/odoo/odoo/issues/8064/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/8064/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/8064/events","html_url":"https://github.com/odoo/odoo/issues/8064","id":100803297,"number":8064,"title":"cannot convert dictionary update sequence element #0 to a sequence","user":{"login":"merzali","id":6013056,"avatar_url":"https://avatars.githubusercontent.com/u/6013056?v=3","gravatar_id":"","url":"https://api.github.com/users/merzali","html_url":"https://github.com/merzali","followers_url":"https://api.github.com/users/merzali/followers","following_url":"https://api.github.com/users/merzali/following{/other_user}","gists_url":"https://api.github.com/users/merzali/gists{/gist_id}","starred_url":"https://api.github.com/users/merzali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merzali/subscriptions","organizations_url":"https://api.github.com/users/merzali/orgs","repos_url":"https://api.github.com/users/merzali/repos","events_url":"https://api.github.com/users/merzali/events{/privacy}","received_events_url":"https://api.github.com/users/merzali/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T15:47:46Z","updated_at":"2015-08-13T15:47:46Z","closed_at":null,"body":"That's my scenario to make this issue happen,  \r\nCreate new product.supplierinfo object that inherits from product.supplierinfo\r\n\r\n\r\nclass eggs_product_supplierinfo(models.Model):\r\n    _name = \"variant.product.supplierinfo\"\r\n    _inherit = \"product.supplierinfo\"\r\n    #***************************************************************************************************\r\n    #     Fields    \r\n    #***************************************************************************************************\r\n    product_id = fields.Many2one(comodel_name='product.product', string=\"Product variant\",ondelete='cascade')\r\n\r\n\r\nclass ProductProduct(models.Model):\r\n    _inherit = \"product.product\"\r\n    #***************************************************************************************************\r\n    #     Fields    \r\n    #***************************************************************************************************\r\n    eggs_seller_ids = fields.One2many(comodel_name=\"eggs.product.supplierinfo\",inverse_name='product_id')\r\n\r\nOverride write function with new api of product.supplierinfo to be able to create/write a variant.product.supplierinfo\r\n\r\n\r\nclass ProductSupplierInfo(models.Model):\r\n    _inherit = \"product.supplierinfo\"\r\n    @api.multi\r\n    def write(self, values):\r\n        written_supplierinfo_record = super(ProductSupplierInfo, self).write(values)\r\n        -- DO THINGS\r\n        return written_supplierinfo_record\r\n\r\n\r\nWhen install my module, I'm getting this error message : \r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/http.py\", line 530, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/http.py\", line 567, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/http.py\", line 303, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/http.py\", line 300, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/http.py\", line 796, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/http.py\", line 396, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/addons/web/controllers/main.py\", line 949, in call_kw\r\n    return self._call_kw(model, method, args, kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/addons/web/controllers/main.py\", line 941, in _call_kw\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 363, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/addons/eggs_template_images/product.py\", line 61, in write\r\n    ret = super(product_template, self).write(values)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 239, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 546, in new_api\r\n    result = method(self._model, cr, uid, self.ids, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/addons/product/product.py\", line 742, in write\r\n    res = super(product_template, self).write(cr, uid, ids, vals, context=context)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/addons/mail/mail_thread.py\", line 427, in write\r\n    result = super(mail_thread, self).write(cr, uid, ids, values, context=context)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 363, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/models.py\", line 3731, in write\r\n    self._write(old_vals)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 239, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 546, in new_api\r\n    result = method(self._model, cr, uid, self.ids, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/models.py\", line 3874, in _write\r\n    result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/osv/fields.py\", line 751, in set\r\n    obj.write(cr, user, [act[1]], act[2], context=context)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 335, in old_api\r\n    recs = self.browse(cr, uid, [], context)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/models.py\", line 5178, in browse\r\n    return self._browse(Environment(cr, uid, context or {}), ids)\r\n  File \"/home/eggs/Documents/odoo-20150218/openerp/api.py\", line 709, in __new__\r\n    self.cr, self.uid, self.context = self.args = (cr, uid, frozendict(context))"}}