First we can get the current company in the web page template by using
request.env.user.company_id
so we can show the current company logo by using
<img t-if="request.env.user.company_id.logo" t-att-src="image_data_uri(request.env.user.company_id.logo)" style="max-height:45pt;max-width:90%" alt="Company Logo"/>
and we can show the current company name by using
<span t-esc="request.env.user.name"/>
and so on to display each field in the model res.company
<span t-esc="request.env.user.name"/>
and so on to display each field in the model res.company
No comments:
Post a Comment