Skip to Content
Menu
This question has been flagged
3 Replies
5840 Views

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


Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

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.


Avatar
Discard
Best Answer

Hi,

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

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

Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 25
2395
1
Jul 25
900
1
Aug 25
1151
0
May 25
1340
2
Apr 25
3555