Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1642 Представления

Hello,

I tried to export and import Odoo Studio Customizations, but got the following error message on import:

Error while importing module 'studio_customization'.

while parsing /tmp/tmpxjlz3xfe/studio_customization/data/ir_model_fields.xml:3, somewhere inside

[...]

Make sure those modules are installed and try again.


The error message suggests that the module has not been installed yet, but this is not the case: The field date_planned_start comes from the module mrp, which is already installed in the destination environment.

I also tried to remove the record from the customization.zip, but then the next record threw an error. The new error has a similar message and the field comes from an already installed Odoo module.


I hope someone can help. Thanks in advance.

PS: Unfortunately I cannot post the whole error message as some parts get interpreted by the editor as HTML even if I put it into a code block...


PPS: After manipulating several files from the customizations manually, the import worked. In my opinion, someone who uses Odoo Studio should not have to go into such detail as not everyone has the needed technical knowledge. The errors where not directly visible save in the odoo log:

ERROR: duplicate key value violates unique constraint "act_window_view_unique_mode_per_action" 
DETAIL: Key (act_window_id, view_mode)=(530, kanban) already exists.
    Properties of base fields cannot be altered in this manner!
Аватар
Отменить
Автор Лучший ответ

..



Аватар
Отменить
Лучший ответ

Hi Daniel,

The error you're encountering during the import of the Odoo Studio customizations is likely due to dependencies between the customized fields or models. When importing customizations, Odoo expects the referenced models and fields to be present in the target database before attempting to import the customizations.

Here are a few steps you can try to resolve the issue:

  1. Check for Dependency Modules: Ensure that all the modules containing the models and fields referenced in the customization are installed in the target database. Sometimes, a module might depend on another module that is not part of the standard Odoo installation.
  2. Check Module Installation Order: If all the required modules are installed, try uninstalling and reinstalling them in the correct order. The order of module installation can sometimes cause issues if dependencies are not properly resolved.
  3. Clear the Cache and Update the Module List: After installing or updating modules, clear the server cache and update the module list
  4. Check for Conflicting Customizations: Sometimes, customizations made in Odoo Studio can conflict with other customizations or modules. Review the customizations carefully to ensure there are no conflicts.
  5. Check for XML Syntax Errors: The error message suggests an issue while parsing the XML file. Inspect the ir_model_fields.xml file for any potential syntax errors or invalid characters.

Hope it helps



Аватар
Отменить
Автор

Hello Cybrosys Team,

thank you for your reply. I took another round of analyzing and debugging:

- Updated/installed all modules in the destination environment that have been installed in the source environment
- Updated module lists and emptied caches
- Re exported the customizations

Again to no avail.

A close look into the Odoo log gave me this error message:

> Properties of base fields cannot be altered in this manner!

Now this would definitely explain why my import doesn't work. This also begs the question why the import/export logic does not consider this from the get-go.

I will reply again as soon as I have tried to manually change the exported customizations.

Cheers

Related Posts Ответы Просмотры Активность
1
авг. 20
2441
2
нояб. 24
1149
1
нояб. 24
1274
1
февр. 24
9137
1
окт. 23
2288