Browse Source

[FIX] : Apr 7 Bug Fixed 'odoo_google_contact_integration'

pull/354/merge
AjmalCybro 3 weeks ago
parent
commit
2a6797162e
  1. 2
      odoo_google_contact_integration/__manifest__.py
  2. 1
      odoo_google_contact_integration/doc/RELEASE_NOTES.md
  3. 14
      odoo_google_contact_integration/models/res_company.py
  4. 14
      odoo_google_contact_integration/static/description/assets/icons/whatsapp.svg
  5. 130
      odoo_google_contact_integration/static/description/index.html

2
odoo_google_contact_integration/__manifest__.py

@ -21,7 +21,7 @@
###############################################################################
{
'name': "Google Contact Connector",
'version': '18.0.1.0.0',
'version': '18.0.1.0.1',
"category": "Extra Tools",
'summary': """Synchronize Google Contacts (Import/Export).""",
'description': 'The Google Contact Connector module helps you import Google'

1
odoo_google_contact_integration/doc/RELEASE_NOTES.md

@ -3,3 +3,4 @@
#### Version 18.0.1.0.0
#### ADD
- Initial commit for Google Contact Connector
- Fixed the issue of default country and state assignment during contact import

14
odoo_google_contact_integration/models/res_company.py

@ -148,9 +148,17 @@ class ResCompany(models.Model):
[("name", 'ilike', state)], limit=1)
state_id = state.id if state else False
country_code = addresses.get('countryCode', '')
country = self.env['res.country'].search(
[('code', 'ilike', country_code)], limit=1)
country_id = country.id if country else False
if addresses:
if country_code:
country_record = self.env['res.country'].search([('code', 'ilike', country_code)], limit=1)
country_id = country_record.id if country_record else False
else:
country_id = False
else:
state_id = False
country_id = False
partner_vals = {
'name': name or '',
'first_name': first_name or '',

14
odoo_google_contact_integration/static/description/assets/icons/whatsapp.svg

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Layer_2" data-name="Layer 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23.98 24">
<defs>
<style>
.cls-1 {
fill: #fff;
}
</style>
</defs>
<g id="Layer_1-2" data-name="Layer 1">
<path class="cls-1" d="m20.43,3.49C18.18,1.24,15.18,0,11.99,0c-3.18,0-6.19,1.24-8.46,3.48C1.26,5.73,0,8.72,0,11.89h0c0,1.92.5,3.86,1.46,5.62L.03,24l6.56-1.49c1.66.84,3.52,1.28,5.39,1.28h0c3.18,0,6.19-1.24,8.46-3.48,2.28-2.25,3.53-5.24,3.53-8.41,0-3.15-1.26-6.14-3.54-8.41Zm-8.45,18.43h0c-1.68,0-3.34-.42-4.81-1.22l-.31-.17-4.36.99.95-4.31-.18-.32c-.91-1.57-1.39-3.3-1.39-5,0-5.52,4.54-10.02,10.11-10.02,2.69,0,5.22,1.04,7.12,2.94,1.93,1.92,2.99,4.44,2.99,7.09,0,5.52-4.54,10.02-10.12,10.02Z"/>
<path class="cls-1" d="m8.73,6.65h-.53c-.18,0-.48.07-.73.34-.25.27-.96.93-.96,2.28s.98,2.64,1.12,2.83c.14.18,1.9,3.03,4.68,4.13,2.32.91,2.79.73,3.29.68.5-.05,1.62-.66,1.85-1.3s.23-1.19.16-1.3c-.07-.11-.25-.18-.53-.32-.27-.14-1.62-.81-1.87-.9-.25-.09-.43-.14-.62.14-.18.27-.72.91-.88,1.09-.16.18-.32.21-.59.07-.27-.14-1.15-.43-2.2-1.36-.82-.72-1.38-1.65-1.54-1.92-.16-.27-.02-.42.12-.56.12-.12.29-.29.43-.45.14-.16.18-.27.27-.46.09-.18.05-.34-.02-.48-.07-.14-.59-1.49-.84-2.03h0c-.21-.46-.42-.47-.62-.48Z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

130
odoo_google_contact_integration/static/description/index.html

@ -85,13 +85,63 @@
</style>
</head>
<body>
<!-- overview -->
<!--<div class="container">-->
<!-- <div class="my-5">-->
<!-- button tab -->
<!-- -->
<!-- version support -->
<!-- <div class="my-3 d-flex align-items-center justify-content-end">-->
<!-- <span class="me-3"><b>Supports: </b></span>-->
<!-- <div class="text-center"-->
<!-- style="background-color:#017E84 !important; font-size:0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important">-->
<!-- Community-->
<!-- </div>-->
<!-- <div class="text-center"-->
<!-- style="background-color:#875A7B !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important">-->
<!-- Enterprise-->
<!-- </div>-->
<!-- <div class="text-center"-->
<!-- style="background-color:#7C7BAD !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important">-->
<!-- Odoo.sh-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="row" style="margin-top:10px">-->
<!-- <div class="d-flex align-items-center justify-content-end">-->
<!-- <span class="me-3"><b>Availability: </b></span>-->
<!-- <div class="text-center col"-->
<!-- style="font-size:0.8rem !important; color:#5B899E !important; border:1px solid #5B899E; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:20px !important; min-width:120px !important">-->
<!-- <i class="fa fa-check" style="color:green"></i> On Premise-->
<!-- </div>-->
<!-- <div class="text-center col"-->
<!-- style="border:1px solid #017E84; font-size:0.8rem !important; color:#017E84 !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:20px !important; min-width:120px !important">-->
<!-- <i class="fa fa-times" style="color:red"></i> Odoo Online-->
<!-- </div>-->
<!-- <div class="text-center col"-->
<!-- style="font-size:0.8rem !important; border:1px solid #714b67; color:#714b67 !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:20px !important; min-width:120px !important">-->
<!-- <i class="fa fa-times" style="color:red"></i> Odoo.sh-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- overview -->
<div class="container">
<div class="my-5">
<!-- button tab -->
<!-- -->
<!-- version support -->
<!-- support-header -->
<div class="supports my-5 py-3" style="border-bottom: 1px solid #e7e7e7;">
<div class="row justify-content-between">
<div class="col-4">
</div>
<div class="col-6">
<div class="row" style="margin-top:10px">
<div class="my-3 d-flex align-items-center justify-content-end">
<span class="me-3"><b>Supports: </b></span>
<div class="text-center"
style="background-color:#017E84 !important; font-size:0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important">
Community
@ -105,6 +155,28 @@
Odoo.sh
</div>
</div>
</div>
<div class="row" style="margin-top:10px">
<div class="d-flex align-items-center justify-content-end">
<span class="me-3"><b>Availability: </b></span>
<div class="text-center col"
style="font-size:0.8rem !important; color:#5B899E !important; border:1px solid #5B899E; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:20px !important; min-width:120px !important">
<i class="fa fa-check" style="color:green"></i> On Premise
</div>
<div class="text-center col"
style="border:1px solid #017E84; font-size:0.8rem !important; color:#017E84 !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:20px !important; min-width:120px !important">
<i class="fa fa-times" style="color:red"></i> Odoo Online
</div>
<div class="text-center col"
style="font-size:0.8rem !important; border:1px solid #714b67; color:#714b67 !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:20px !important; min-width:120px !important">
<i class="fa fa-check" style="color:green"></i> Odoo.sh
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-content" id="myTabContent">
<!-- description -->
<div class="tab-pane fade show active" id="home" role="tabpanel"
@ -188,6 +260,32 @@
>Skype Us</span
>
</a>
<a href="https://wa.me/9074270811"
target="_blank"
style="
background-color: #25D366;
font-family: Montserrat;
display: inline-block;
color: #7f54b3;
padding: 7px 33px;
border: 1px solid #25D366;
border-radius: 35px;
text-decoration: none;
width: 230px;
"
class="mx-1 mb-2 deep-1 deep_hover">
<img
class="img"
style="width: 24px"
src="./assets/icons/whatsapp.svg"
/>
<span
class="pl-2"
style="color: #fff; font-size: 15px; vertical-align: middle"
>+91 9074270811</span>
</a>
</div>
<div class="d-flex justify-content-center mt-2">
<img src="./assets/screenshots/hero.gif"
@ -205,6 +303,7 @@
<img src="./assets/icons/patter.svg">
</div>
</div>
<!-- key-highlight -->
<div class="" style="border-radius: 16px;
padding: 60px 40px;
@ -304,6 +403,7 @@
</div>
</div>
</div>
<!--code -->
<div class="my-5">
<div style=" padding: 5rem 4rem 5rem 4rem; background-color: #0A1425; border-radius: 12px; position: relative;">
@ -1171,6 +1271,36 @@
role="tabpanel">
<!-- Release Notes -->
<div class="row pt-5 m-0">
<div class="col-md-3">
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;">
Latest Release 18.0.1.0.1
</h4>
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;">
7th April, 2025
</span>
</div>
<div class="col-md-8">
<div style="padding:0 0 40px">
<div style="margin:0 0 10px">
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px">
Updt
</div>
</div>
<div class="d-flex m-0"
style="color:#7A7979;">
<ul class="pl-3 mb-0">
<li>
Fixed the issue of default country and state assignment during contact import
</li>
</ul>
</div>
</div>
<div style="padding:0 0 0; border-bottom:1px solid #E3E3E3">
</div>
</div>
</div>
<div class="row pt-5 m-0">
<div class="col-md-3">
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;">
Latest Release 18.0.1.0.0

Loading…
Cancel
Save