[FIX] 'website.menu.write() with unknown fields: is_homepage' when change menu sequence on website

This commit is contained in:
Chintan Ambaliya 2018-05-08 11:02:14 +05:30
parent 1d4568c657
commit ff3d93dfb7

View File

@ -981,6 +981,7 @@ class Menu(models.Model):
if to_delete:
self.browse(to_delete).unlink()
for menu in data['data']:
del menu['is_homepage']
mid = menu['id']
# new menu are prefixed by new-
if isinstance(mid, pycompat.string_types):