콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
401 화면

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