Skip to content

Commit ea0c7cc

Browse files
committed
[IMP] Odoo SaaS dump + Base/Inherited/Duplicated views
closes #14502 Signed-off-by: Brandon Mercier (bram) <[email protected]>
1 parent ccfc6b5 commit ea0c7cc

File tree

1 file changed

+18
-9
lines changed
  • content/developer/howtos/website_themes

1 file changed

+18
-9
lines changed

content/developer/howtos/website_themes/setup.rst

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,23 @@ Static vs. Dynamic
114114

115115
.. _website_themes/setup/databases/views/standard_vs_inherited :
116116

117-
Standard vs. Inherited
118-
**********************
117+
Base vs. Inherited vs. Duplicated
118+
*********************************
119119

120-
- **Standard views** are base views implemented by Odoo. They are directly derived from their model.
121-
You should never change them as they allow updating an Odoo database without overwriting a
122-
client's modifications.
123-
- **Inherited views** are duplicated views. Modifications always take place in an inherited view. If
124-
there is a duplicate view, there will be two views with the same name in the database, but the
125-
duplicated view will not have an ID like for standard view.
120+
- **Base view:** View natively implemented by Odoo. It is directly derived from their model.
121+
A base view should never be altered as it allows updating an Odoo database without overwriting a
122+
client's modification.
123+
124+
Modifications always take place in either a duplicated or inherited view with some differences:
125+
126+
- **Inherited view** always has an `inherit_id` and applies modifications based on the source
127+
code of the base view it inherits from.
128+
- **Duplicated view** is a duplication from another one. Most of the time this kind of view is
129+
created by Odoo when the end-user applies modifications through the Website Builder. This
130+
mechanism prevents data loss when the module is updated because only the source view will be
131+
updated, not the duplicated one. If a duplicated view exists, both the original view and the
132+
duplicated one are visible in the list but only the duplicated one has an `external_id` (an
133+
`external_id` set means that the view has been created by the source code of a module).
126134

127135
.. _website_themes/setup/databases/import :
128136

@@ -143,7 +151,8 @@ Dump
143151
Odoo SaaS
144152
*********
145153

146-
Go to `<database_url>/saas_worker/dump`.
154+
#. Log in to a user account with sufficient access rights.
155+
#. Go to `<database_url>/saas_worker/dump`.
147156

148157
.. _website_themes/setup/databases/import/sh :
149158

0 commit comments

Comments
 (0)