sale.report_invoice_layouted is already inheriting account.report_invoice_document
I want to add columns and such to sale.report_invoice_layouted. However, I keep getting an:
Element cannot be located in parent view
...error. On any XPATH I name.
From what I understand from searching the forums, you can't inherit an inherited view? So that begs the question, how can I make changes to this particular view? Can I prevent it from being called in the first place? Is there a way to replace it?
EDIT:
From the docs:
- when a view is requested by
id, if its mode is notprimaryits closest parent with modeprimaryis matched
So it's basically account.report_invoice_document instead of sale.report_invoice_layouted and that's why the error.
But again, how can I add to/edit sale.report_invoice_layouted?
There is no problem with inheriting an inherited view. Did you check your xpath expression with a xpath tester?
Yes. I tried ANY xpath expression and tested them. All couldn't be located in parent view.
Post a screenshot of your view so we can review the field values and XML content?