mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-19 10:52:03 +02:00
206 lines
11 KiB
XML
206 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="enrich_company">
|
|
<p t-esc="flavor_text" />
|
|
<div class="o_partner_autocomplete_enrich_info p-3 mt-3 mb-3 me-5">
|
|
<div class="row p-0 m-0">
|
|
<div class="col-sm-10 p-0">
|
|
<h4>
|
|
<span class="me-3 align-middle" t-esc="name"/>
|
|
<a t-if="twitter" class="ms-2" target="_blank" t-attf-href="http://www.twitter.com/{{twitter}}">
|
|
<img src="/mail/font_to_img/61569/rgb(0,132,180)/22"/>
|
|
</a>
|
|
<a t-if="facebook" class="ms-2" target="_blank" t-attf-href="http://www.facebook.com/{{facebook}}">
|
|
<img src="/mail/font_to_img/61570/rgb(59,89,152)/22"/>
|
|
</a>
|
|
<a t-if="linkedin" class="ms-2" target="_blank" t-attf-href="https://www.linkedin.com/{{linkedin}}">
|
|
<img src="/mail/font_to_img/61580/rgb(0,119,181)/22"/>
|
|
</a>
|
|
<a t-if="crunchbase" class="ms-2" target="_blank" t-attf-href="https://www.crunchbase.com/{{crunchbase}}">
|
|
<img width="19px" height="19px" src="/partner_autocomplete/static/img/crunchbase.ico"/>
|
|
</a>
|
|
</h4>
|
|
<p t-esc="description"/>
|
|
</div>
|
|
<div t-if="logo" class="col-sm-2 p-0 text-center text-md-end order-first order-md-last">
|
|
<img t-attf-src="{{logo}}" alt="" style="max-width: 80px;"/>
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
|
|
<div class="col-sm-12 row m-0 p-0">
|
|
<div t-if="company_type" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-building text-primary"/>
|
|
<b>Company type</b>
|
|
</div>
|
|
<div t-if="company_type" class="my-1 col-sm-9" t-esc="company_type" />
|
|
<div t-if="founded_year" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-calendar text-primary"/>
|
|
<b>Founded</b>
|
|
</div>
|
|
<div t-if="founded_year" class="my-1 col-sm-9" t-esc="founded_year" />
|
|
<t t-set="sectors" t-value="[]" />
|
|
<t t-if="sector_primary" t-set="sectors" t-value="sectors + [sector_primary]" />
|
|
<t t-if="industry" t-set="sectors" t-value="sectors + [industry]" />
|
|
<t t-if="industry_group" t-set="sectors" t-value="sectors + [industry_group]" />
|
|
<t t-if="sub_industry" t-set="sectors" t-value="sectors + [sub_industry]" />
|
|
<div t-if="sectors" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-industry text-primary"/>
|
|
<b>Sectors</b>
|
|
</div>
|
|
<div t-if="sectors" class="my-1 col-sm-9">
|
|
<t t-foreach="sectors" t-as="inner_sector">
|
|
<label t-esc="inner_sector" class="o_tag o_tag_color_7" style="font-weight:normal; padding: 2px 10px; margin: 1px 0px; border-radius: 13px; display: inline-block;"/>
|
|
</t>
|
|
</div>
|
|
<div t-if="employees" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-users text-primary"/>
|
|
<b>Employees</b>
|
|
</div>
|
|
<div t-if="employees" class="my-1 col-sm-9" t-esc="'%.0f' % employees" />
|
|
<div t-if="estimated_annual_revenue" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-money text-primary"/>
|
|
<b>Estimated revenue</b>
|
|
</div>
|
|
<div t-if="estimated_annual_revenue" class="my-1 col-sm-9">
|
|
<span t-esc="estimated_annual_revenue" /><span> per year</span>
|
|
</div>
|
|
<div t-if="phone_numbers" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-phone text-primary"/>
|
|
<b>Phone</b>
|
|
</div>
|
|
<div t-if="phone_numbers" class="col-sm-9">
|
|
<t t-foreach="phone_numbers" t-as="phone_number">
|
|
<a t-attf-href="tel:{{phone_number}}" t-esc="phone_number" class="o_tag o_tag_color_7" style="font-weight:normal; padding: 2px 10px; margin: 1px 0px; border-radius: 13px; display: inline-block;"/>
|
|
</t>
|
|
</div>
|
|
<div t-if="email" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-envelope text-primary"/>
|
|
<b>Email</b>
|
|
</div>
|
|
<div t-if="email" class="col-sm-9">
|
|
<t t-foreach="email" t-as="email_item">
|
|
<a target="_top" t-attf-href="mailto:{{email_item}}" t-esc="email_item" class="o_tag o_tag_color_7" style="font-weight:normal; padding: 2px 10px; margin: 1px 0px; border-radius: 13px; display: inline-block;"/>
|
|
</t>
|
|
</div>
|
|
<div t-if="timezone" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-globe text-primary"/>
|
|
<b>Timezone</b>
|
|
</div>
|
|
<div t-if="timezone" class="my-1 col-sm-9" t-esc="timezone.replace('_', ' ')" />
|
|
<div t-if="tech" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-cube text-primary"/>
|
|
<b>Technologies Used</b>
|
|
</div>
|
|
<div t-if="tech" class="my-1 col-sm-9">
|
|
<t t-foreach="tech" t-as="tech_item">
|
|
<label t-esc="tech_item.replace('_', ' ').title()" class="o_tag o_tag_color_7" style="font-weight:normal; padding: 2px 10px; margin: 1px 0px; border-radius: 13px; display: inline-block;"/>
|
|
</t>
|
|
</div>
|
|
<div t-if="twitter_bio" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-twitter text-primary"/>
|
|
<b>X</b>
|
|
</div>
|
|
<div t-if="twitter_bio" class="my-1 col-sm-9">
|
|
<div class="d-flex gap-2">
|
|
<a t-if="twitter" target="_blank" t-attf-href="http://www.twitter.com/{{twitter}}" class="text-nowrap">
|
|
http://www.twitter.com/<t t-esc="twitter"/>
|
|
</a>
|
|
<span t-if="twitter"> • </span>
|
|
<div t-if="twitter_followers" class="text-nowrap"><t t-esc="twitter_followers"/> followers</div>
|
|
</div>
|
|
<div t-esc="twitter_bio" class="mt-1"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="enrich_company_by_dnb">
|
|
<div class="o_partner_autocomplete_enrich_info p-3 mt-3 mb-3 me-5">
|
|
<div class="row p-0 m-0">
|
|
<div class="col-sm-10 p-0">
|
|
<h4 class="me-3 align-middle" t-att-style="logo and 'margin-top:25px' or ''" t-out="name"/>
|
|
</div>
|
|
<div t-if="logo" class="col-sm-2 p-0 text-center text-md-end order-first order-md-last">
|
|
<img t-attf-src="data:image/png;base64, {{logo}}" alt="" style="max-width: 80px;"/>
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
|
|
<div class="col-sm-12 row m-0 p-0">
|
|
<div t-if="company_type" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-building mt-1 text-primary"/>
|
|
<b>Type</b>
|
|
</div>
|
|
<div t-if="company_type" class="my-1 col-sm-9" t-out="company_type" />
|
|
<div t-if="vat" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-folder mt-1 text-primary"/>
|
|
<b>Tax ID</b>
|
|
</div>
|
|
<div t-if="vat" class="my-1 col-sm-9" t-out="vat" />
|
|
<t t-set="sectors" t-value="[]" />
|
|
<t t-if="sector_primary" t-set="sectors" t-value="sectors + [sector_primary]" />
|
|
<t t-if="industry" t-set="sectors" t-value="sectors + [industry]" />
|
|
<t t-if="industry_group" t-set="sectors" t-value="sectors + [industry_group]" />
|
|
<t t-if="sub_industry" t-set="sectors" t-value="sectors + [sub_industry]" />
|
|
<div class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-address-card text-primary mt-1"/>
|
|
<b>Address</b>
|
|
</div>
|
|
<div class="my-1 col-sm-9">
|
|
<div class="o_address_format">
|
|
<div t-if="street" class="o_address_street" t-out="street"/>
|
|
<div t-if="street2" class="o_address_street" t-out="street2"/>
|
|
<span t-if="city" t-out="city"/>
|
|
<span t-if="state" toutc="state"/>
|
|
<span t-if="zip_code" t-out="zip_code"/>
|
|
<div t-if="country" class="o_address_country" t-out="country"/>
|
|
</div>
|
|
</div>
|
|
<div t-if="employees" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-users text-primary"/>
|
|
<b>Employees</b>
|
|
</div>
|
|
<div t-if="employees" class="my-1 col-sm-9" t-out="'%.0f' % employees" />
|
|
<div t-if="estimated_annual_revenue" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-money mt-1 text-primary"/>
|
|
<b>Estimated revenue</b>
|
|
</div>
|
|
<div t-if="estimated_annual_revenue" class="my-1 col-sm-9">
|
|
<span t-out="estimated_annual_revenue" /><span> per year</span>
|
|
</div>
|
|
<div t-if="phone" class="d-flex p-0 my-1 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-phone mt-1 text-primary"/>
|
|
<b>Phone</b>
|
|
</div>
|
|
<div t-if="phone" class="col-sm-9 my-1">
|
|
<a t-attf-href="tel:{{phone}}" t-out="phone"/>
|
|
</div>
|
|
<div t-if="email" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-envelope text-primary" style="margin-top: 3px;"/>
|
|
<b>Email</b>
|
|
</div>
|
|
<div t-if="email" class="col-sm-9 my-1">
|
|
<a target="_top" t-attf-href="mailto:{{email}}" t-out="email"/>
|
|
</div>
|
|
<div t-if="website" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-globe mt-1 text-primary"/>
|
|
<b>Website</b>
|
|
</div>
|
|
<div t-if="website" class="my-1 col-sm-9">
|
|
<a target="_blank" t-attf-href="{{website}}" t-out="website"/>
|
|
</div>
|
|
<div t-if="tags" class="d-flex my-1 p-0 col-sm-3">
|
|
<i class="fa fa-fw me-2 fa-industry text-primary"/>
|
|
<b>Industries</b>
|
|
</div>
|
|
<div t-if="tags" class="col-sm-9">
|
|
<t t-foreach="tags" t-as="tag_item">
|
|
<label t-out="tag_item[1]" class="o_tag o_tag_color_7" style="font-weight:normal; padding: 2px 10px; margin: 1px 0px; border-radius: 13px; display: inline-block;"/>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</odoo>
|