Parcourir la source

[Fix] correcciones

Rodney Enciso Arias il y a 7 ans
Parent
commit
344b732896

BIN
models/car_workshop.pyc


+ 4 - 2
static/src/css/vehicles.css

@@ -3,6 +3,8 @@
     height: 250px;
 }
 .card-image-box{
-    width: 190px;
-    height: 190px;
+    height: 191px;
 }
+.card-image-box > img{
+	width: 70% !important;
+}

+ 0 - 98
static/src/less/car_dashboard.less

@@ -1,98 +0,0 @@
-.o_kanban_view.o_kanban_dashboard.o_project_kanban {
-
-    .o_kanban_record {
-        .o-flex-display();
-        position: relative;
-    }
-
-    .o_project_kanban_main {
-        .o-flex(0, 0, auto);
-        padding: @odoo-horizontal-padding;
-        width: 70%; // for IE11 overflow issue
-
-        // give space for manage section at the bottom
-        margin-bottom: @odoo-horizontal-padding/2 + 19px;
-
-        .o_kanban_card_content {
-            font-size: 12px;
-            .o_primary {
-                font-size: larger;
-            }
-        }
-
-        .o_project_kanban_manage {
-            .o-position-absolute(@bottom: 0, @left: 0);
-            padding: @odoo-horizontal-padding/2 @odoo-horizontal-padding;
-        }
-        .o_kanban_card_manage_pane .o_kanban_card_manage_title {
-            margin: 0;
-        }
-    }
-
-    .o_project_kanban_boxes {
-        width: 30%;
-        .o-flex(0, 0, auto);
-
-        .o-flex-display();
-        .o-flex-flow(column, nowrap);
-
-        > a:hover {
-            text-decoration: none;
-        }
-
-        .o_value {
-            font-size: x-large;
-            color: white;
-            display: block;
-        }
-        .o_label {
-            color: white;
-        }
-        .o_needaction{
-            position: absolute;
-            top: 5px;
-            right: 5px;
-            color: white;
-            font-size: small;
-            opacity: 0.5;
-            &:hover{
-                opacity:1;
-            }
-            &::before {
-                content: "\f086";
-                font: normal normal normal 14px/1 FontAwesome;
-            }
-        }
-
-        .o_project_kanban_box {
-            position: relative;
-            text-align: center;
-            padding: 15px 0 15px 0;
-            .o-flex(1, 1, auto);
-            .o-flex-display();
-            .o-align-items(center);
-            .o-flex-flow(column, nowrap);
-            .o-justify-content(center);
-        }
-        .o_project_kanban_box:nth-child(even) {
-            background-color: grey;
-        }
-        .o_project_kanban_box:nth-child(odd) {
-            background-color: @odoo-brand-optional;
-        }
-    }
-}
-
-.o_kanban_task_cover_image {
-    .o-columns(200px, 4);
-    > img {
-        cursor: pointer;
-        margin-bottom: 1em;
-        border: 1px solid transparent;
-
-        &.o_selected {
-            border-color: @odoo-brand-secondary;
-            box-shadow: 0px 0px 2px 2px @odoo-brand-secondary;
-        }
-    }
-}

+ 21 - 8
views/timesheet_view.xml

@@ -5,17 +5,30 @@
             <field name="model">planned.work</field>
             <field name="arch" type="xml">
                 <form string="Planned Work">
-                    <group>
+                    <sheet>
                         <group>
-                            <field name="planned_work" />
-                            <field name="time_spent" widget="float_time" />
+                            <div class="oe_title oe_left">
+                                <div class="oe_edit_only">
+                                    <label for="work_id" string="Tarea"/>
+                                </div>
+                                <h2>
+                                    <field name="work_id" placeholder="Tarea"/>
+                                </h2>
+                            </div>   
                         </group>
+                        
                         <group>
-                            <field name="responsible"/>
-                            <field name="work_date"/>
-                            <field name="work_cost"/>
-                        </group>
-                    </group>
+                            <group>
+                                <field name="planned_work" string="Actividad planeada"/>
+                                <field name="time_spent" widget="float_time" string="Tiempo Estimado"/>
+                            </group>
+                            <group>
+                                <field name="responsible" string="Responsable"/>
+                                <field name="work_date" string="Fecha"/>
+                                <field name="work_cost" string="Costo"/>
+                            </group>
+                        </group>    
+                    </sheet>
                 </form>
             </field>
         </record>

+ 2 - 2
views/worksheet_views.xml

@@ -234,8 +234,8 @@
         </record>
 
         <menuitem id="main_workshop_menu" name="Operaciones" />
-        <menuitem name="Buscar" id="search_worksheet" parent="main_workshop_menu" sequence="2"/>
-        <menuitem name="Lista de tareas" id="vehicle_works" parent="search_worksheet" action="action_car_workshop_filtered"/>
+        <menuitem name="Control de tareas" id="search_worksheet" parent="main_workshop_menu" sequence="2"/>
+        <menuitem name="Todas las Tareas" id="vehicle_works" parent="search_worksheet" action="action_car_workshop_filtered"/>
         <menuitem id="menu_worksheet_config" name="Configuración" parent="main_workshop_menu" sequence="4"/>
 
     </data>