Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
182 Переглядів

Hi guys,

I’m using Docker as the virtual environment to develop on Odoo 18.

I want to add a few lines of text in the Employee form view of the Employees App, just to see how the form view is laid out.

However, I’ve run into a problem:

When I insert some <p> tags inside the view_employee_form record (specifically under the group) in hr/views/hr_employee_views.xml​, nothing changes in the UI.Even if I delete the entire views folder, the UI still looks the same. I’ve already tried restarting Docker, deleting the database, creating a new one, and reinstalling the Employees App, but the UI remains unchanged.

What I want to understand is this: why does modifying the source code under hr/views​ have no effect on the Employee App’s Employee UI? Even if I completely remove the hr/views​ folder and then reinstall the Employees App, the UI still loads correctly.

Аватар
Відмінити

Where is the folder you edit/delete? Is it inside the Docker? Are you sure, that you binded your volumes correctly?

Автор Найкраща відповідь

Thank you for your reply. I found the cause — when I updated the code, my Docker volume didn’t update, so it was still using the old one."

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 25
2114
0
жовт. 24
1605
5
серп. 24
47495
2
квіт. 24
3022
3
черв. 23
6814