[FIX] 'website.menu.write() with unknown fields: is_homepage' when change menu sequence on website
This commit is contained in:
parent
1d4568c657
commit
ff3d93dfb7
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user