Traceback (most recent call last): File "/home/ubuntu/mahesh/odoo_playground/odoo/service/server.py", line 1198, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "/home/ubuntu/mahesh/odoo_playground/odoo/modules/registry.py", line 89, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/ubuntu/mahesh/odoo_playground/odoo/modules/loading.py", line 497, in load_modules env['ir.model.data']._process_end(processed_modules) File "/home/ubuntu/mahesh/odoo_playground/odoo/addons/base/models/ir_model.py", line 2235, in _process_end record.unlink() File "/home/ubuntu/mahesh/odoo_playground/odoo/addons/base/models/ir_model.py", line 1357, in unlink self._process_ondelet() File "/home/ubuntu/mahesh/odoo_playground/odoo/addons/base/models/ir_model.py", line 1382, in _process_ondelete ondelete = (field.ondelete or {}).get(selection.value) or 'set null' AttributeError: 'str' object has no attribute 'get'
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
this error is mostly caused by changing previous type field with perhaps is the same name, i suggest to uninstall the module that related to it or just make a new field with different name and different type
Hi,
The error log you provided indicates that there is an issue with deleting a record in Odoo, resulting in an "AttributeError: 'str' object has no attribute 'get'" error.
1. Analyze the traceback: Look for the specific file and line number mentioned in the error log.
2. Identify the problem: The error is related to the `ondelete` attribute of a field in the model. It seems that the attribute is expected to be a dictionary-like structure with a `.get()` method, but it is currently a string.
Hope it helps
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
يوليو 25
|
2907 | ||
|
2
يونيو 25
|
1780 | ||
|
0
مايو 25
|
14 | ||
Odoo wrong company logo in email
تم الحل
|
|
2
يناير 25
|
3339 | |
|
1
ديسمبر 24
|
6904 |