Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I did try to hide the logo on the web site (need a bigger one), so I switch of the logo in customize. Then I try to hide the hostname, so I open the customize - html editor and pick the main layout and deleted :
<a class="navbar-brand" href="/" t-if="website" t-field="website.name">My Website</a>
That work fine until I put the logo back. Then I got the 500 error code. So I try to find where that change has been made on the file system. I found something very similar in website/views/website_templates.xml but the deleted line is still there, so where do I have to put it back, in a file or in a database record
Thank you for help
Website templates are just views saved into the database on the table ir_ui_view after the modules are installed or updated. The website editor just change that template views and save back to the database. All the xml records created using a module have an external id saved in the model ir.model.data to be able to identify it latter for subsequent updates. When a view is installed from a module and updated using the website editor their related record in the ir.model.data is marked with noupdate = True. So the next updates of the module that create it will not revert the template view back to their original data arch and it remains with their manual changes
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
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/11/16, 6:39 PM|
|Seen: 1050 times|
|Last updated: 3/13/16, 10:52 AM|