Skip to content

Commit

Permalink
[RELEASE] 16.0.8.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
SIP authored and SIP committed Dec 31, 2024
1 parent 2fc816a commit fffa3a8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bad_connector_woocommerce/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Odoo Woocommerce Connector",
"version": "16.0.8.0.4",
"version": "16.0.8.0.5",
"category": "Connector",
"author": "BizzAppDev Systems Pvt. Ltd.",
"website": "http://www.bizzappdev.com",
Expand Down
9 changes: 5 additions & 4 deletions bad_connector_woocommerce/components/utils.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import base64
import logging
import urllib.request

import requests

logger = logging.getLogger(__name__)


def fetch_image_data(image_url):
"""Fetch and encode an image from a URL as base64."""
try:
response = urllib.request.urlopen(image_url)
if response.status == 200:
binary_data = response.read()
response = requests.get(image_url)
if response.status_code == 200:
binary_data = response._content
return base64.b64encode(binary_data).decode("utf-8")
else:
return None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<group>
<group>
<field name="name" placeholder="e.g. Image Toy" />
<field name="url" />
<field name="url" widget="url" />
<field name="alt" />
</group>
</group>
Expand All @@ -25,7 +25,7 @@
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="url" />
<field name="url" widget="url" />
</tree>
</field>
</record>
Expand Down
2 changes: 1 addition & 1 deletion grouped_product_bad_connector_woocommerce/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Grouped Product Odoo Woocommerce Connector",
"version": "16.0.8.0.4",
"version": "16.0.8.0.5",
"category": "Connector",
"author": "BizzAppDev Systems Pvt. Ltd.",
"website": "http://www.bizzappdev.com",
Expand Down

0 comments on commit fffa3a8

Please sign in to comment.