Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
347 Представления

Hi,

in the development branch I made some changes with studio.

To bring these changes to production I tried to export the studio configurations and insert them into the repository.


But once the commit is done the build goes into error.

how can I solve it?


FAIL: TestClocFields.test_fields_from_studio
Traceback (most recent call last):
  File "/home/odoo/src/odoo/addons/base_import_module/tests/test_cloc.py", line 79, in test_fields_from_studio
    self.assertEqual(cl.code.get('studio_customization', 0), 1, "Count manual field created via studio")
AssertionError: 0 != 1 : Count manual field created via studio

Module base_import_module: 1 failures, 0 errors of 8 tests

Failed to load registry


thanks

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

This is from an odoo.sh test branch I would assume? What's the source of your actual module? What version of Odoo are we dealing with? Does your module work in a locally set up backup of the staging database?

Автор

Yes odoo.sh version 18.

These are changes I made with Studio in the development branch on the Contacts module (added 4-5 fields to the contact).

I exported the Studio configurations and put them in the repository.

I have no other changes in the repository, it is still a virgin installation.

Is Odoo Studio installed in Production?

What does "put them in the repository" mean?

Did you add the XML records to the data folder of an existing module or just add the studio_customization module to the repository?

Автор

I simply add the studio_customization module to the repository.

I don't have any other customizations on other modules.

Only the studio_customization folder and the README file.


I had read this procedure in this post at point 3.

https://www.odoo.com/it_IT/forum/assistenza-1/efficient-way-to-migrate-to-production-in-odoosh-270365