You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to make an editable tree and it didn't work, neither with a normal tree. Apparently my view is "invalid" but I don't know why, there is a parse error near the tree tag in the xml file. In fact, there is no crash with the "widget" attribute alone (the field only stays blank), it occurs when there is also "model_field".
I work with the 14.0 version of generic_m2o module.
If you are unable to reproduce, I can provide more details (I don't do this now because I think it will require some editing as I'm not sure my employer is OK to share details about the database)
The text was updated successfully, but these errors were encountered:
Animal-Machine
changed the title
Internal server error when widget used in tree view
Internal server error when many2one widget used in tree view
Sep 20, 2021
I got it too, and my logs tell me this:
odoo.tools.view_validation: :4:0:ERROR:RELAXNGV:RELAXNG_ERR_NOELEM: Expecting an element data, got nothing
odoo.tools.view_validation: :4:0:ERROR:RELAXNGV:RELAXNG_ERR_INVALIDATTR: Invalid attribute model_field for element field
odoo.tools.view_validation: :2:0:ERROR:RELAXNGV:RELAXNG_ERR_EXTRACONTENT: Element tree has extra content: field
Currently generic_m2o does not work for tree view. This is because in recent versions of Odoo try have strict xml-scheme for tree view, that do not allow to use additional attributes. Theoretically, it have sense to rewrite this widget to use options param, instead of model_field, but not sure when we will have time for this refactoring. And we have to keep in mind backward compatability.
But if you can make pull request, we will review it and possibly accept.
I wanted to make an editable tree and it didn't work, neither with a normal tree. Apparently my view is "invalid" but I don't know why, there is a parse error near the tree tag in the xml file. In fact, there is no crash with the "widget" attribute alone (the field only stays blank), it occurs when there is also "model_field".
I work with the 14.0 version of generic_m2o module.
If you are unable to reproduce, I can provide more details (I don't do this now because I think it will require some editing as I'm not sure my employer is OK to share details about the database)
The text was updated successfully, but these errors were encountered: