Browse Source

Limpieza de codigo

Rodney Elpidio Enciso Arias 7 years ago
parent
commit
386af8d072

+ 0 - 21
__init__.py

@@ -1,23 +1,2 @@
 # -*- coding: utf-8 -*-
-##############################################################################
-#
-#    Cybrosys Technologies Pvt. Ltd.
-#    Copyright (C) 2008-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
-#    Author: Nilmar Shereef(<http://www.cybrosys.com>)
-#    you can modify it under the terms of the GNU LESSER
-#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
-#
-#    It is forbidden to publish, distribute, sublicense, or sell copies
-#    of the Software or modified copies of the Software.
-#
-#    This program is distributed in the hope that it will be useful,
-#    but WITHOUT ANY WARRANTY; without even the implied warranty of
-#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
-#
-#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
-#    GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
-#    If not, see <http://www.gnu.org/licenses/>.
-#
-##############################################################################
 import models

+ 1 - 3
__openerp__.py

@@ -17,10 +17,8 @@
         'views/project_service_material.xml',
         'views/project_service_stage.xml',
         'views/project_service_reserve.xml',
-        # 'views/product_service.xml',
-        # 'views/product_service_brand.xml',
         'views/template.xml',
-        # 'security/ir.model.access.csv',
+        'security/ir.model.access.csv',
     ],
     'license': 'AGPL-3',
     'installable': True,

+ 0 - 4
models/__init__.py

@@ -5,8 +5,4 @@ import project_service_activity
 import project_service_material
 import project_service_stage
 import project_service_reserve
-
-# import project_service_tag
-# import product_service
-# import product_service_brand
 import account_invoice

+ 0 - 36
models/product_service.py

@@ -1,36 +0,0 @@
-# -*- encoding: utf-8 -*-
-from openerp import models, fields, api, tools
-from openerp.exceptions import ValidationError
-
-class ProductService(models.Model):
-    _name = 'product.service'
-
-    name=fields.Char('Nombre',compute='_get_product_name', store=True)
-    model=fields.Char('Modelo')
-    year=fields.Integer('Año')
-    number=fields.Char('Número')
-    logo = fields.Binary('Logo File')
-    partner_id = fields.Many2one(
-        'res.partner',
-        string='Cliente',
-        ondelete='restrict'
-    )
-    description = fields.Text('Description', translate=True)
-    valuation = fields.Float('Valor')
-    product_service_brand_id = fields.Many2one(
-        'product.service.brand',
-        string='Marca'
-    )
-
-    @api.one
-    @api.constrains('number')
-    def _controla_numero(self):
-        part_obj = self.env['product.service'].search([('number','=',self.number)])
-        if len(part_obj) > 1:
-            raise ValidationError('La numero debe ser unico')
-
-    @api.one
-    @api.depends('product_service_brand_id','model','number')
-    def _get_product_name(self):
-        self.name = self.product_service_brand_id.name + ' / ' +  self.model + ' / ' + self.number
-

+ 0 - 23
models/product_service_brand.py

@@ -1,23 +0,0 @@
-# -*- encoding: utf-8 -*-
-from openerp import models, fields, api, tools
-from openerp.exceptions import ValidationError
-
-class ProductServiceBrand(models.Model):
-    _name = 'product.service.brand'
-
-    name = fields.Char('Brand Name', required=True)
-    description = fields.Text('Description', translate=True)
-    logo = fields.Binary('Logo File')
-    product_service_ids = fields.One2many(
-        'product.service',
-        'product_service_brand_id',
-    )
-    product_service_count = fields.Integer(
-        string='Numero de autos',
-        compute='_get_product_service_count',
-    )
-
-    @api.one
-    @api.depends('product_service_ids')
-    def _get_product_service_count(self):
-        self.product_service_count = len(self.product_service_ids)

+ 1 - 23
models/project_service.py

@@ -6,13 +6,8 @@ class ProjectService(models.Model):
     _name = 'project.service'
 
     name = fields.Char('Nombre') 
-    date_start = fields.Date(string='Start Date')
-    date_due = fields.Date(string='Expiration Date')
     sequence = fields.Integer(string='Sequence')
-    partner_id =  fields.Many2one('res.partner', 'Customer')
     image_medium = fields.Binary('Binary File')
-    state = fields.Selection([('occupied', 'Ocupado'),('vacancy', 'Vacante')],
-        string='Estado')
     active = fields.Boolean('Activo')
     color = fields.Integer('Color Index')
 
@@ -26,8 +21,6 @@ class ProjectService(models.Model):
     )
 
     _defaults = {
-        'state': 'vacancy',
-        'color': 7,
         'active': 1,
     }
 
@@ -38,22 +31,7 @@ class ProjectService(models.Model):
                 raise Warning('No puedes borrar un proyecto que tiene tareas')
         return super(ProjectService, self).unlink()
 
-    # def on_change_product(self):
-    #     if not self.name:
-    #         return {}
-    #     model = self.pool.get('product.service').browse(self.name)
-    #     return {
-    #         'value': {
-    #             'image_medium': model.logo,
-    #         }
-    #     }
-
     @api.one
     @api.depends('project_service_task_ids')
     def _get_project_service_task_count(self):
-        self.project_service_task_count = len(self.project_service_task_ids)
-
-    # @api.one 
-    # @api.onchange('name')
-    # def onchange_name(self):
-    #     self.partner_id = self.name.partner_id.id
+        self.project_service_task_count = len(self.project_service_task_ids)

BIN
models/project_service.pyc


+ 2 - 2
models/project_service_material.py

@@ -5,10 +5,10 @@ class ProjectServiceMaterial(models.Model):
     _name = 'project.service.material'
 
     product_id = fields.Many2one('product.product', string='Productos', domain=[('sale_ok','=',True)])
+    task_id = fields.Many2one('project.service.task',string="Trabajo")
     amount = fields.Integer(string='Cantidad', default=1)
     price = fields.Float(string='Precio Unitario')
-    task_id = fields.Many2one('project.service.task',string="Trabajo")
-
+    
     @api.onchange('product_id')
     def get_price(self):
         self.price = self.product_id.lst_price

BIN
models/project_service_material.pyc


+ 2 - 2
models/project_service_reserve.py

@@ -24,6 +24,6 @@ class ProjectServiceReserve(models.Model):
     }
 
     @api.one
-    @api.depends('partner_id','user_id','date_reserve')
+    @api.depends('partner_id','user_id')
     def _get_reserve_name(self):
-        self.name = self.partner_id.name + ' [ ' +  self.date_reserve + ' ] '
+        self.name = self.partner_id.name

BIN
models/project_service_reserve.pyc


+ 3 - 1
models/project_service_stage.py

@@ -19,8 +19,10 @@ class ProjectServiceStage(models.Model):
     def unlink(self):
         if self.id == 1:
             raise Warning(('No puedes borrar esta etapa.'))
-        if self.id == 4:
+        if self.id == 2:
             raise Warning(('No puedes borrar esta etapa.'))
         if self.id == 3:
             raise Warning(('No puedes borrar esta etapa.'))
+        if self.id == 4:
+            raise Warning(('No puedes borrar esta etapa.'))
         return super(ProjectServiceStage, self).unlink()

BIN
models/project_service_stage.pyc


+ 0 - 9
models/project_service_task.py

@@ -16,7 +16,6 @@ class ProjectServiceTask(models.Model):
     date = fields.Datetime(string='Deadline', select=True, copy=False)
     color = fields.Integer(string='Color Index')
     stage_id = fields.Many2one('project.service.stage', string='Stage', track_visibility='onchange', copy=False)
-    # effective_hour = fields.Float(string='Hours Spent', compute="hours_spent",readonly=True)
     activity_ids = fields.One2many('project.service.activity', 'task_id', string='Planned/Ordered Works')
     materials_used = fields.One2many('project.service.material', 'task_id', string='Materials Used')
     amount_total = fields.Float(string='Total Amount', compute="get_amount_total", readonly=True)
@@ -68,14 +67,6 @@ class ProjectServiceTask(models.Model):
                         amount_totall += line2.price
                 records.amount_total = amount_totall
 
-    # @api.depends('activity_ids.time_spent')
-    # def hours_spent(self):
-    #     for hour in self:
-    #         effective_hour = 0.0
-    #         for line in hour.works_done:
-    #             effective_hour += line.time_spent
-    #         self.effective_hour = effective_hour
-
     @api.one
     @api.depends('invoice_ids','state')
     def _get_invoice_count(self):

BIN
models/project_service_task.pyc


+ 2 - 5
security/ir.model.access.csv

@@ -14,8 +14,5 @@
 "access_project_service_stage","project.service.stage","model_project_service_stage","base.group_partner_manager",1,1,1,1
 "access_project_service_stage_public","project.service.stage.public","model_project_service_stage",,1,0,0,0
 
-"access_product_service","product.service","model_product_service","base.group_partner_manager",1,1,1,1
-"access_product_service_public","product.service.public","model_product_service",,1,0,0,0
-
-"access_product_service_brand","product.service.brand","model_product_service_brand","base.group_partner_manager",1,1,1,1
-"access_product_service_brand_public","product.service.brand.public","model_product_service_brand",,1,0,0,0
+"access_project_service_reserve","project.service.reserve","model_project_service_reserve","base.group_partner_manager",1,1,1,1
+"access_project_service_reserve_public","project.service.reserve.public","model_project_service_reserve",,1,0,0,0

BIN
static/img/chair.jpg


+ 0 - 81
views/product_service.xml

@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<openerp>
-    <data>
-
-        <!-- Form view -->
-        
-        <record model="ir.ui.view" id="product_service_form">
-            <field name="name">product.service.form</field>
-            <field name="model">product.service</field>
-            <field name="arch" type="xml">
-                <form string="Product Service">
-                    <sheet>
-                        <field name="logo" widget="image" class="oe_avatar oe_left"/>
-                        <div class="oe_title">
-                            <h2>
-                                <field name="product_service_brand_id" placeholder="Marca" required="1"/>
-                            </h2>
-                            <h2>
-                                <field name="model" placeholder="Modelo" required="1"/>
-                            </h2>
-                            <h2>
-                                <field name="number" placeholder="Número" required="1"/>
-                            </h2>
-
-                        </div>
-                        <notebook>
-                            <page string="Configuración">
-                                <group>
-                                    <group>
-                                        <group string="Información legal">
-                                            <field name="partner_id" string="Propietario" required="1" domain="[('customer','=',True)]"/>
-                                            <field name="valuation" string="Valoracion del producto"/>
-                                        </group>
-                                    </group>
-                                    <group>
-                                        <group string="Información Adicional">
-                                            <field name="year" string="Año"/>
-                                        </group>
-                                    </group>   
-                                </group>
-                                <group>
-                                    <group string="Descripción">
-                                        <field name="description" nolabel="1"/>
-                                    </group>
-                                </group>
-                            </page>
-                        </notebook>
-                    </sheet>
-                </form>
-            </field>
-        </record>
-        
-        <!-- tree view -->
-
-        <record model="ir.ui.view" id="product_service_tree" >
-            <field name="name">product_service_tree</field>
-            <field name="model">product.service</field>
-            <field name="arch" type="xml">
-                <tree string="Product">
-                    <field name="name"/>
-                    <field name="partner_id"/>
-                    <field name="valuation"/>
-                </tree>
-            </field>
-        </record>
-
-        <!-- action -->
-
-        <record model="ir.actions.act_window" id="product_service_action">
-            <field name="name">Productos</field>
-            <field name="res_model">product.service</field>
-            <field name="view_type">form</field>
-            <field name="view_mode">tree,form</field>
-        </record>
-        
-        <!-- menus -->
-
-        <menuitem
-            name="Registrar Producto" id="product_service_add_menu" action="product_service_action" parent="project_config_parent_menu"/>
-    </data>
-</openerp>

+ 0 - 86
views/product_service_brand.xml

@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<openerp>
-    <data>
-
-        <!-- actions -->
-
-        <act_window
-            id="action_open_product_service"
-            name="Car Products"
-            res_model="product.service"
-            view_type="form"
-            view_mode="tree,form"
-            domain="[('product_service_brand_id', '=', active_id)]"/>
-
-        <act_window
-            id="action_open_single_product_service"
-            name="Car Brand"
-            res_model="product.service"
-            view_type="form"
-            view_mode="tree,form"
-            target="current"
-            domain="[('product_service_ids', 'in', active_id)]"/> 
-
-        <!-- form view -->
-
-        <record model="ir.ui.view" id="product_service_brand_form">
-            <field name="name">product_service_brand_form</field>
-            <field name="model">product.service.brand</field>
-            <field name="arch" type="xml">
-                <form string="Car Brand" version="7.0">
-                    <sheet>
-                        <field name="logo" widget="image" class="oe_avatar oe_left"/>
-                        <div class="oe_title">
-                            <div class="oe_edit_only">
-                                <label for="name" string="Marca"/>
-                            </div>
-                            <h1>
-                                <field name="name"/>
-                            </h1>
-                        </div>
-                        <div class="oe_right oe_button_box">
-                            <button
-                                class="oe_inline oe_stat_button"
-                                type="action"
-                                name="%(action_open_product_service)d"
-                                icon="fa-cubes">
-                                <field name="product_service_count" string="Productos" widget="statinfo" />
-                            </button>
-                        </div>
-                        <group string="Descripción">
-                            <field name="description" nolabel="1"/>
-                        </group>
-                    </sheet>
-                </form>
-            </field>
-        </record>
-
-        <!-- Tree -->
-
-        <record model="ir.ui.view" id="product_service_brand_tree">
-            <field name="name">product.service.brand.tree</field>
-            <field name="model">product.service.brand</field>
-            <field name="arch" type="xml">
-                <tree string="Marca">
-                    <field name="name" string="Nombre"/>
-                    <field name="description" string="Descripción"/>
-                </tree>
-            </field>
-        </record>
-        
-        <!-- action -->
-
-        <record model="ir.actions.act_window" id="product_service_brand_action">
-            <field name="name">Marcas</field>
-            <field name="res_model">product.service.brand</field>
-            <field name="view_type">form</field>
-            <field name="view_mode">tree,form</field>
-        </record>
-
-        <!-- menu -->
-
-        <menuitem
-            name="Marcas" id="product_service_brand_all_menu" 
-            action="product_service_brand_action" parent="project_config_parent_menu"/>
-    </data>
-</openerp>

+ 4 - 30
views/project_service.xml

@@ -28,9 +28,6 @@
             <field name="model">project.service</field>
             <field name="arch" type="xml">
                 <form string="Proyectos">
-                    <header>
-                        <field name="state" widget="statusbar" clickable="True"/>
-                    </header>
                     <sheet>
                         <field name="image_medium" widget='image' class="oe_avatar oe_left"/>
                         <div class="oe_title">
@@ -43,8 +40,8 @@
                                 class="oe_inline oe_stat_button"
                                 type="action"
                                 name="%(action_open_project_service_task)d"
-                                icon="fa-cubes">
-                                <field name="project_service_task_count" string="Trabajos" widget="statinfo" />
+                                icon="far fa-user">
+                                <field name="project_service_task_count" string="Clientes" widget="statinfo" />
                             </button>
                         </div>
                         <notebook>
@@ -64,25 +61,6 @@
             </field>
         </record>
 
-        <!-- Search view -->
-
-        <!-- <record model="ir.ui.view" id="project_service_search">
-            <field name="name">project.service.search</field>
-            <field name="model">project.service</field>
-            <field name="arch" type="xml">
-                <search string="Buscar Proyecto">
-                    <field name="name" string="Nombre"/>
-                    <filter string="Abierto" name="Current" domain="[('state', '=','open')]"/>
-                    <filter string="Pendiente" name="Pending" domain="[('state', '=','pending')]"/>
-                    <separator/>
-                    <separator/>
-                    <group expand="0" string="Agrupar por ">
-                        <filter string="Cliente" name="Partner" context="{'group_by':'partner_id'}"/>
-                    </group>
-                </search>
-            </field>
-        </record> -->
-
         <!-- Kanban view -->
 
         <record model="ir.ui.view" id="project_service_kanban">
@@ -130,10 +108,8 @@
             <field name="name">project.service.tree</field>
             <field name="model">project.service</field>
             <field name="arch" type="xml">
-                <tree  decoration-info="state in ('draft','pending')" decoration-muted="state in ('close','cancelled')" string="Panel de control">
-                    <field name="name" string="Nombre del Proyecto"/>
-                     <field name="partner_id" string="Cliente"/>
-                    <field name="state" string="Estado"/>
+                <tree string="Panel de control">
+                    <field name="name" string="Nombre"/>
                 </tree>
             </field>
         </record>
@@ -146,8 +122,6 @@
             <field name="view_type">form</field>
             <field name="domain">[]</field>
             <field name="view_mode">kanban,tree,form</field>
-            <!-- <field name="search_view_id" ref="project_service_search"/> -->
-            <!-- <field name="context">{'search_default_Current': 1}</field> -->
         </record>
         
         <!-- menus -->

+ 1 - 2
views/project_service_activity.xml

@@ -104,14 +104,13 @@
             <field name="res_model">project.service.activity</field>
             <field name="view_type">form</field>
             <field name="domain">[]</field>
-            <field name="view_mode">tree,form,calendar</field>
+            <field name="view_mode">calendar,form,tree</field>
             <field name="search_view_id" ref="project_service_activity_search"/>
             <field name="context">{'search_default_Pending': 1}</field>
         </record>
         
         <!-- menus -->
         
-        <!-- <menuitem name="Control de Actividades" parent="project_main_menu" id="project_service_activity_parent_menu" sequence="3"/> -->
         <menuitem name="Trabajos" parent="project_service_parent_menu" id="project_service_activity_all_menu" sequence="3" action="project_service_activity_action"/>
     </data>
 </openerp>

+ 19 - 20
views/project_service_reserve.xml

@@ -25,14 +25,12 @@
                         </group>   
                         <group>
                             <group>
-                                <field name="user_id" string="Funcionario"/>
+                                <field name="user_id" string="Funcionario" required="1"/>
                                 <field name="date" string="Fecha"/>
                                 <field name="date_reserve" string="Fecha Reservada"/>
                             </group>
                             <group>
                                 <field name="place" string="Lugar"/>
-                                <!-- <field name="work_date" string="Fecha"/>
-                                <field name="work_cost" string="Costo"/> -->
                             </group>
                         </group>    
                     </sheet>
@@ -65,39 +63,38 @@
             <field name="arch" type="xml">
                 <calendar color="user_id" date_start="date_reserve" string="Reserva">
                     <field name="place"/>
-                    <field name="user_id"/>
+                    <field name="name"/>
                 </calendar>
             </field>
         </record>
 
         <!-- Search -->
 
-        <!-- <record model="ir.ui.view" id="project_service_activity_search">
-            <field name="name">project.service.activity.search</field>
-            <field name="model">project.service.activity</field>
+        <record model="ir.ui.view" id="project_service_reserve_search">
+            <field name="name">project.service.reserve.search</field>
+            <field name="model">project.service.reserve</field>
             <field name="arch" type="xml">
-               <search string="Actividades">
-                    <field name="name" string="Actividad"/>
+               <search string="Reservas">
                     <field name="user_id" string="Responsable"/>
-                    <field name="task_id" string="Tarea"/>
-                    <filter string="Mis Actividades" domain="[('user_id','=',uid)]"/>
+                    <field name="place" string="Lugar"/>
+                    <filter string="Mis Reservas" domain="[('user_id','=',uid)]"/>
                     <separator/>
-                    <filter string="Terminados" name="End" domain="[('completed','=',1)]"/>
-                    <filter string="Pendientes" name="Pending" domain="[('completed','=',0)]"/>
-                    <filter string="Hoy" domain="[('work_date', '&gt;=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('work_date', '&lt;=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
-                    <filter string="Ayer" domain="[('work_date','&lt;=', (datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d')),('work_date','&gt;=',(datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d'))]"/>
-                    <filter string="Esta semana" domain="[('work_date', '&gt;=', ((context_today()+relativedelta(weeks=-1, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('work_date', '&lt;=', ((context_today()+relativedelta(weeks=0, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
-                    <filter string="Mes actual" domain="[('work_date','&lt;',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')), ('work_date','&gt;=',time.strftime('%%Y-%%m-01'))]"/>
-                    <filter string="Mes pasado" domain="[('work_date','&gt;=',(context_today()-relativedelta(months=1)).strftime('%%Y-%%m-01')),('work_date','&lt;',time.strftime('%%Y-%%m-01'))]"/>
+                    <filter string="Terminados" name="End" domain="[('state','=','done')]"/>
+                    <filter string="Pendientes" name="Pending" domain="[('state','=','confirmed')]"/>
+                    <filter string="Hoy" domain="[('date_reserve', '&gt;=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('date_reserve', '&lt;=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
+                    <filter string="Ayer" domain="[('date_reserve','&lt;=', (datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d')),('date_reserve','&gt;=',(datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d'))]"/>
+                    <filter string="Esta semana" domain="[('date_reserve', '&gt;=', ((context_today()+relativedelta(weeks=-1, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('date_reserve', '&lt;=', ((context_today()+relativedelta(weeks=0, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
+                    <filter string="Mes actual" domain="[('date_reserve','&lt;',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')), ('date_reserve','&gt;=',time.strftime('%%Y-%%m-01'))]"/>
+                    <filter string="Mes pasado" domain="[('date_reserve','&gt;=',(context_today()-relativedelta(months=1)).strftime('%%Y-%%m-01')),('date_reserve','&lt;',time.strftime('%%Y-%%m-01'))]"/>
                     <separator/>
                     <group expand="0" string="Agrupar por ">
-                        <filter string="Tarea" name="task" context="{'group_by':'task_id'}"/>
                         <filter string="Responsables" name="User" context="{'group_by':'user_id'}"/>
+                        <filter string="Cliente" name="Customer" context="{'group_by':'partner_id'}"/>
                         <separator/>
                     </group>
                 </search>
             </field>
-        </record> -->
+        </record>
 
         <!-- action -->
         
@@ -106,6 +103,8 @@
             <field name="res_model">project.service.reserve</field>
             <field name="view_type">form</field>
             <field name="view_mode">calendar,tree,form</field>
+            <field name="search_view_id" ref="project_service_reserve_search"/>
+            <field name="context">{'search_default_Pending': 1}</field>
         </record>
         
         <!-- menus -->

+ 2 - 18
views/project_service_task.xml

@@ -6,7 +6,7 @@
 
         <act_window
             id="action_open_account_invoice"
-            name="Tareas"
+            name="Factura"
             res_model="account.invoice"
             view_type="form"
             view_mode="tree,form"
@@ -14,7 +14,7 @@
 
         <act_window
             id="action_open_single_account_invoice"
-            name="Tareas"
+            name="Factura"
             res_model="account.invoice"
             view_type="form"
             view_mode="tree,form"
@@ -71,7 +71,6 @@
                                     <field name="activity_ids" nolabel="1" attrs="{'readonly': [('state','!=', 'Preparado')]}">
                                         <tree string="Planned Work" editable="bottom">
                                             <field name="product_id" string="Trabajo" required="1"/>
-                                            <!-- <field name="time_spent" sum= "Estimated Time" widget="float_time" string="Tiempo Estimado"/> -->
                                             <field name="work_date" string="Fecha de trabajo"/>
                                             <field name="user_id" string="Responsable"/>
                                             <field name="work_cost" string="Precio" sum="total" required="1"/>
@@ -91,9 +90,6 @@
                                         <field name="amount_total"/>
                                     </h1>
                                 </group>
-                                <!-- <group class="oe_subtotal_footer oe_right" name="project_hours">
-                                    <field name="effective_hour" widget="float_time" string="Horas Gastadas"/>
-                                </group> -->
                             </page>
                         </notebook>
                     </sheet>
@@ -110,7 +106,6 @@
                 <tree string="Tareas">
                     <field name="name" string="Titulo"/>
                     <field name="project_id" string="Proyecto"/>
-                    <!-- <field name="user_id" string="Asignado a"/> -->
                     <field name="date" string="Fecha limite"/>
                     <field name="stage_id" string="Etapa"/>
                 </tree>
@@ -126,8 +121,6 @@
                 <kanban default_group_by="stage_id">
                     <field name="color"/>
                     <field name="priority"/>
-                    <!-- <field name="user_id"/> -->
-                    <!-- <field name="description"/> -->
                     <field name="date"/>                    
                     <templates>
                          <t t-name="kanban-box">
@@ -144,13 +137,9 @@
                             <div class="oe_kanban_content">
                                 <div><b><field name="name"/></b></div>
                                 <div>
-                                    <!-- <field name="project_id"/><br/> -->
                                     <t t-if="record.date.raw_value and record.date.raw_value lt (new Date())" t-set="red">oe_kanban_text_red</t>
                                     <span t-attf-class="#{red || ''}"><i><field name="date"/></i></span>
                                 </div>
-                                <!-- <div class="oe_kanban_bottom_right">
-                                    <img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar pull-right"/>
-                                </div> -->
                             </div>
                             <div class="oe_clear"></div>
                         </div>
@@ -184,15 +173,12 @@
                     <field name="name" string="Tarea"/>
                     <field name="partner_id" string="Cliente"/>
                     <field name="project_id" string="Proyecto"/>
-                    <!-- <field name="user_id" string="Responsable"/> -->
                     <field name="stage_id" string="Etapa"/>
-                    <!-- <filter string="Mis tareas" domain="[('user_id','=',uid)]"/> -->
                     <separator/>
                     <filter string="Nuevo" name="draft" domain="[('stage_id.sequence', '&lt;=', 1)]"/>
                     <separator/>
                     <group expand="0" string="Agrupar por ">
                         <filter string="Proyecto" name="project" context="{'group_by':'project_id'}"/>
-                        <!-- <filter string="Asignado a" name="User" context="{'group_by':'user_id'}"/> -->
                         <filter string="Etapa" name="Stage" context="{'group_by':'stage_id'}"/>
                         <filter string="Estado" name="State" context="{'group_by':'state'}"/>
                         <separator/>
@@ -211,8 +197,6 @@
         </record>
 
         <!-- menus -->
-
-        <!-- <menuitem name="Control de tareas" id="project_service_task_parent_menu" parent="project_main_menu" sequence="2"/> -->
         <menuitem name="Clientes" id="project_service_task_all_menu" parent="project_service_parent_menu" action="project_service_task_action" sequence="2"/>
 
     </data>