From a109c0fb3994339ebdc02666715e1f1c0bfd44d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WEB=E8=AE=B8=E4=BD=95=E5=93=B2=5Cxuhez?= Date: Fri, 20 Oct 2023 16:29:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jikimo_frontend/static/src/scss/custom_style.scss | 14 ++++---------- sf_manufacturing/models/product_template.py | 4 ++-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/jikimo_frontend/static/src/scss/custom_style.scss b/jikimo_frontend/static/src/scss/custom_style.scss index 3ae7958c..1d7f061e 100644 --- a/jikimo_frontend/static/src/scss/custom_style.scss +++ b/jikimo_frontend/static/src/scss/custom_style.scss @@ -8,13 +8,7 @@ white-space: nowrap; } -div:has(.o_required_modifier) > label::before { - content: '*' !important; - color: red !important; - padding: 0 4px !important; - vertical-align: top !important; - font-size: 1.5rem !important; -} + .my-image div { width: 110px !important; @@ -205,7 +199,7 @@ div[class="o_content o_component_with_search_panel"] img[name="equipment_image"] div[class="o_content o_component_with_search_panel"] .o_kanban_card_content button { position: absolute; top: -52px; - left: -55px; + left: 3rem; width: 80px; } @@ -265,7 +259,7 @@ div[class="o_content o_component_with_search_panel"] .o_kanban_primary_right > . div[class="o_content o_component_with_search_panel"] .o_kanban_card_content button { - left: -95px; + left: -4.4px; } } @@ -289,4 +283,4 @@ div[class="o_content o_component_with_search_panel"] .o_kanban_primary_right > . .text-bg-warning { background-color: #FED300 !important; -} \ No newline at end of file +} diff --git a/sf_manufacturing/models/product_template.py b/sf_manufacturing/models/product_template.py index baf86eb6..fd953733 100644 --- a/sf_manufacturing/models/product_template.py +++ b/sf_manufacturing/models/product_template.py @@ -1,8 +1,8 @@ from odoo import models, fields, api from odoo.exceptions import ValidationError from odoo.modules import get_resource_path -from OCC.Extend.DataExchange import read_step_file -from OCC.Extend.DataExchange import write_stl_file +# from OCC.Extend.DataExchange import read_step_file +# from OCC.Extend.DataExchange import write_stl_file import logging import base64 import hashlib