diff --git a/web_company_color/__manifest__.py b/web_company_color/__manifest__.py index f5329cfa86d..df48fbbef3a 100644 --- a/web_company_color/__manifest__.py +++ b/web_company_color/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Web Company Color", "category": "web", - "version": "18.0.1.0.7", + "version": "18.0.1.0.8", "author": "Alexandre Díaz, Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", "depends": ["web", "base_sparse_field"], diff --git a/web_company_color/utils.py b/web_company_color/utils.py index 2028a4c4b89..593bc86663e 100644 --- a/web_company_color/utils.py +++ b/web_company_color/utils.py @@ -31,7 +31,7 @@ def normalize_vec3(vec3): # Mix. image colors using addition method RGBA_WHITE = (255, 255, 255, 255) for i in range(0, height * width): - rgba = img.getpixel((i % width, i / width)) + rgba = img.getpixel((i % width, i // width)) if rgba[3] > 128 and rgba != RGBA_WHITE: rgb_sum[0] += rgba[0] rgb_sum[1] += rgba[1]