Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
576 Lượt xem

I had a problem when adding a field/there was a change in res_partner. then after upgrading an 'Internal Server Error' occurred. Does something have to be adjusted in the manifest or some other way?

res_partner_views.xml

Manifest.py

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,


If you add any new field to the res.partner model, you need to upgrade the module from the terminal using the following command:

./odoo-bin -c test.conf -d db_name -u custom_module

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Is this field also defined on you python file ? 

Are you you upgrading the correct module ?

Sharing the log files would also be helpful

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,


If you're encountering an internal server error when loading an Odoo 15 XML view, there are a few key areas to check. First, ensure that the is_invoice field you're referencing in the attrs is actually defined and available in the model or view. If this field doesn’t exist, Odoo will fail to render the view. Second, confirm that the fields l10n_id_nik and l10n_id_tax_name are properly defined in the Python model (.py file). If these fields are missing, the view will throw an error at runtime. The syntax of your attrs dictionary looks correct, so that’s likely not the issue. To find the exact cause of the internal server error, check your Odoo logs using the command: tail -f /var/log/odoo/odoo-server.log. 

This will show you the real-time error traceback, which usually points directly to the missing field, incorrect logic, or another issue. Once you address the specific error shown in the logs, your view should load without problems.


Hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
740
0
thg 9 24
1102
1
thg 6 24
1442
1
thg 5 24
1661
3
thg 5 24
1861