Merge branch 'master-is_homepage-warning' into 'master'
[FIX] 'website.menu.write() with unknown fields: is_homepage' when change menu sequence on website See merge request flectra-hq/flectra!57
This commit is contained in:
commit
4099b257df
@ -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