Skip to content
Snippets Groups Projects
  1. Oct 01, 2018
  2. Sep 30, 2018
    • qsm-odoo's avatar
      [IMP] web_editor: use inheriting views for oe_structure content · dd139948
      qsm-odoo authored
      Before this commit, when using the website editor, modifications were
      saved in place in the original view. The view was also marked as non
      updatable so that when an user migrates its database, he does not lose
      its modifications.
      
      The problem with this system is that users were able to keep their
      modifications at the cost of having views which are not up-to-date with
      the latest odoo updates.
      
      Now, the views' content which is inside an oe_structure element is saved
      in an inheriting view instead of the original view. The original
      view is not marked as non updatable anymore.
      
      Note 1: we only consider elements with the 'oe_structure' class which
      also have an id containing the 'oe_structure' string.
      
      Note 2: if a non oe_structure but editable content is edited, the
      original view is still marked as non updatable (however, with the new
      multi-website feature, this may not be necessary as the edited view will
      be duplicated to be website-specific... we may want to disable the
      behavior in a future update).
      dd139948
Loading