If a view template is defined in an XML file, why would Odoo say it can't find the External ID of that view, when you try to inherit/override it? It is included from another view via the "<t t-raw=...>" tag. Does that make it "unlisted" somehow, and how would one go about customizing it?
For example, the template with ID "report_purchasequotation_document" appears (so far as I can tell) to only be called from within "report_purchasequotation" by the directive <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'purchase.report_purchasequotation_document')"/>. When I try to inherit from "report_purchasequotation_document", Odoo says, "External ID not found". What gives?
You have to do a seperate override of the second view. I ran accross that problem and drove myself nuts trying to figure it out. In CRM there are several smart buttons incorporated into the res.partner view. I don't need this information in my system and they were taking up valuable space. Due to the fact that they were included from various modules by inherited views and xpath paths, I had to find each and target those inherited views to remove them. The nice part was that using the internal debug mode I just went to manage views and could see the inherited views in the res.partner view list. After that it was easy to remove or (invisible='1') hide them.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/15/15, 4:05 PM|
|Seen: 815 times|
|Last updated: 3/16/15, 8:10 AM|