@@ -212,16 +212,87 @@ Export and import customizations
212
212
================================
213
213
214
214
When you do any customization with Studio, a new module named :guilabel: `Studio customizations ` is
215
- added to your database.
215
+ added to your database. Exporting customizations from one database and importing them in another can
216
+ be useful, for example, when setting up a new module or for training purposes.
216
217
217
- To export these customizations, go to :menuselection: `Main dashboard --> Studio --> Customizations
218
- --> Export ` to download a ZIP file containing all customizations.
218
+ .. note ::
219
+
220
+ Exporting customizations from Studio is different from the standard Odoo export function, which
221
+ allows you to export data as an Excel or csv file. With :guilabel: `Studio Export `, data is
222
+ exported as a ZIP file, which corresponds to a module.
223
+
224
+ When the module is imported in another database, the data is imported in a logical way, e.g. if
225
+ the module contains customers and sales orders, the customers are created first, since these are
226
+ required for the sales orders.
227
+
228
+ .. _studio/export-import/export :
229
+
230
+ Export customizations
231
+ ---------------------
232
+
233
+ To export customizations, from the main Odoo dashboard click the **Toggle Studio ** button, then
234
+ :guilabel: `Export `.
235
+
236
+ You can download a ZIP file containing all Studio customizations by clicking the :guilabel: `Export `
237
+ button. Alternatively, you can choose which data and/or demo data to export by clicking
238
+ :guilabel: `Configure data and demo data to export `.
239
+
240
+ .. _studio/export-import/export/configure :
241
+
242
+ Configure data to export
243
+ ~~~~~~~~~~~~~~~~~~~~~~~~
244
+
245
+ To select specific models to export, on the :guilabel: `Studio Export ` screen click
246
+ :guilabel: `New `, then choose the relevant model.
247
+
248
+ .. tip ::
249
+
250
+ Click :guilabel: `Preset ` to see a list of all models in your database with records that have been
251
+ modifed using Studio. To configure one of these models for export, click on the model to open it
252
+ and make the required changes.
253
+
254
+ Tick the following options as relevant:
255
+
256
+ - :guilabel: `Demo `: if the exported records should be considered as demo data when imported.
257
+ - :guilabel: `Attachments `: if attachments related to exported records should be included in the
258
+ exported.
259
+ - :guilabel: `Updatable `: if the exported records should be able to updated during a module update.
219
260
220
- To import and install these customizations in another database, connect to the destination database
221
- and go to :menuselection: `Main dashboard --> Studio --> Customizations --> Import `, then upload
222
- the exported ZIP file before clicking on the :guilabel: `Import ` button.
261
+ To set or change the rules determining which of the model's records should be exported, click the
262
+ :icon: `fa-caret-right ` icon next to :guilabel: `Domain ` then click :guilabel: `Edit domain `.
263
+
264
+ After configuring a model for export, click :guilabel: `Studio Export ` to return to the main screen.
265
+ To download a ZIP file with the customizations for all the listed models, click :guilabel: `Export `.
266
+
267
+ .. note ::
268
+
269
+ It is not necessary to select one or more models as all listed models will be included in the
270
+ export. To remove a model from the export, select it and click
271
+ :icon: `fa-cog ` :guilabel: `Actions ` then :icon: `fa-trash-o ` :guilabel: `Delete `.
272
+
273
+ Choose whether to only :guilabel: `Include Data ` or to also
274
+ :guilabel: `Include Demo Data `, then click the :guilabel: `Export ` button.
275
+
276
+ .. image :: models_modules_apps/studio-export.png
277
+ :alt: Choosing to export both data and demo data
278
+
279
+ When the download is complete, click the **X ** to close the :guilabel: `Studio Export ` window.
280
+
281
+ .. _studio/export-import/import :
282
+
283
+ Import customizations
284
+ ---------------------
223
285
224
286
.. warning ::
225
- Before importing, make sure the destination database contains the same apps and modules as the
226
- source database. Studio does not add the underlying modules as dependencies of the exported
227
- module.
287
+ Before importing, make sure the destination database is the same Odoo version and contains the
288
+ same apps and modules as the source database. Studio does not add the underlying modules as
289
+ dependencies of the exported module.
290
+
291
+ To import and install Studio customizations in another database, connect to the destination
292
+ database, then, from the main Odoo dashboard click the **Toggle Studio ** button then
293
+ :guilabel: `Import `.
294
+
295
+ Upload the exported ZIP file. If demo data should be imported, tick :guilabel: `Load demo data `.
296
+ Click the :guilabel: `Install ` button to complete the import.
297
+
298
+
0 commit comments