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 would like to change the zoon value for the map and insert a pin / marker to indicate the company location.
I have tried to modify <my odoo folder>/addons/website_crm/controllers/main.py to change the google api code
but it still doesn't reflect the changes even after several server restarts.
I also added a nice map with the insert block of treehouse theme but wouldn't need the default map there. How to remove it totally?
Found a solution (look the comment, but it is missing the code part in it)
Although, I'd like to edit a xml template in the theme folder for this type of stuff, I did get a solution to edit this now:
Go to Settings -> Technical -> User Interface -> Views
Search for "website.company_description" (or just "company" and select the right one from the filtered list).
Edit the view and comment out the map part of it in the following way:
<a t-att-href="res_company.google_map_link()" target="_BLANK">
<img class="thumbnail img-responsive" t-att-src="res_company.google_map_img()"/>
You may loose these edits when upgrading Odoo or it's core Website functions but when uninstalling, installing themes, these edits should keep intact.
Thanks for the reply. I have also thought of creating a new image content ( I have already coded my map to how I want to look like with the pin/marker) but If you are familiar with the Website Contact Form, it comes with a 298x298 map under the company address that Icannot figure out how to delete. Two maps won't look good on my Contact Form.
It would be nice if I don't have to mess with the python codes, but it seems its the only way to get the correct map image on the form.
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: 9/11/14, 10:27 PM|
|Seen: 3122 times|
|Last updated: 6/1/15, 5:58 AM|