Hi,
On the default "contact us" page on the website app there is an address box which pulls through the name/address from the main company.
I am using a multiple company setup, and I wish to add the details of both of our companies in the same way but I do not know how. I do not want to hardcode the details.
Hers the code I need to change/edit - I am using Odoo studio. I am using hosted so have to manage changes through the studio interface
<t name="Company Description" t-name="website.company_description">
<address itemscope="itemscope" itemtype="http://schema.org/Organization">
<!-- TODO widget contact must add itemprop attributes -->
<div t-field="res_company.partner_id" t-options="{ "widget": "contact", "fields": ["name", "address", "phone", "mobile", "email"]}"/>
<t t-if="not res_company.google_map_img()">
<span class="fa fa-map-marker fa-fw mt16" role="img" aria-label="Address" title="Address"/>
<a t-att-href="res_company.google_map_link()" target="_BLANK"> Google Maps</a>
</t>
</address>
<t t-if="res_company.google_map_img()">
<a t-att-href="res_company.google_map_link()" target="_BLANK">
<img class="img-fluid" t-att-src="res_company.google_map_img()" alt="Google Maps"/>
</a>
</t>
</t>