تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
573 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

Is this field also defined on you python file ? 

Are you you upgrading the correct module ?

Sharing the log files would also be helpful

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 25
740
0
سبتمبر 24
1102
1
يونيو 24
1442
1
مايو 24
1661
3
مايو 24
1861