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

When i click in my custom submenu this error occurs:

Error: Missing field string information for the field 'date' from the 'user.target' model
    at http://localhost:8069/web/assets/761-d60b86b/web.assets_backend.min.js:6640:258
    at traverse (http://localhost:8069/web/assets/761-d60b86b/web.assets_backend.min.js:6635:200)
    at http://localhost:8069/web/assets/761-d60b86b/web.assets_backend.min.js:6635:242
    at Function.each (http://localhost:8069/web/assets/760-de63efc/web.assets_common.min.js:173:149)
    at traverse (http://localhost:8069/web/assets/761-d60b86b/web.assets_backend.min.js:6635:211)
    at processArch (http://localhost:8069/web/assets/761-d60b86b/web.assets_backend.min.js:6639:180)
    at generateLegacyLoadViewsResult (http://localhost:8069/web/assets/761-d60b86b/web.assets_backend.min.js:6637:106)
    at http://localhost:8069/web/assets/761-d60b86b/web.assets_backend.min.js:5673:447


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

Hi,

You have to check in the views for the usage of a field named "date", this is raised when there is a field added in the view and when same is not available in the model.


Thanks

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

check the following details:

  1. Check Model Definitions: Make sure that the 'user.target' model in your Odoo application has a field named 'date' defined. Check for any misspellings or discrepancies in the field definition.

  2. Check Data Structure: Verify that the data structure being sent or received matches the expected format. It's possible that the 'date' field is missing from the data being used, leading to the error.

  3. JavaScript Logic: Examine the JavaScript code that is responsible for handling the click event on the custom submenu. Make sure that you are correctly fetching and manipulating the data, including the 'date' field.

  4. Backend Data Retrieval: If the 'date' field is supposed to be populated from the backend, ensure that the necessary data retrieval logic is in place to provide the 'date' information when requested.

  5. Error Handling: Implement proper error handling in your JavaScript code to provide more descriptive error messages. This can help you identify the root cause of the problem more easily.

  6. Browser Developer Tools: Use your browser's developer tools to inspect the network requests, console logs, and any JavaScript errors that might provide more information about the issue.

  7. Debugging: Insert logging statements or use debugging tools to trace the flow of your code and identify where the error is occurring. This can help pinpoint the exact line of code causing the issue.

  8. Documentation: Consult the documentation for the Odoo framework or any other relevant libraries you are using. There might be specific guidelines or troubleshooting steps related to similar issues.


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

Hi,

Missing String Attribute: The String attribute is missing in the field definition.

eg:    my_field = fields.Char(string='My Field')

Hope it helps

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 25
2434
1
يوليو 25
920
1
أغسطس 25
1151
0
مايو 25
1362
2
أبريل 25
3574