|
@@ -42,13 +42,9 @@ class WorkOrder(models.Model):
|
|
line_ids = fields.One2many(
|
|
line_ids = fields.One2many(
|
|
comodel_name='repair.workorderimproved.line',
|
|
comodel_name='repair.workorderimproved.line',
|
|
inverse_name='workorder_id',
|
|
inverse_name='workorder_id',
|
|
- string='Lista de pedidos'
|
|
|
|
- )
|
|
|
|
- consumed_ids = fields.One2many(
|
|
|
|
- comodel_name='repair.workorderimproved.consumed',
|
|
|
|
- inverse_name='workorder_id',
|
|
|
|
- string='Product & Services consumed'
|
|
|
|
|
|
+ string='Pedidos inicial del cliente'
|
|
)
|
|
)
|
|
|
|
+
|
|
order_date = fields.Datetime(
|
|
order_date = fields.Datetime(
|
|
string='Order date',
|
|
string='Order date',
|
|
default=fields.Datetime.now
|
|
default=fields.Datetime.now
|
|
@@ -59,6 +55,9 @@ class WorkOrder(models.Model):
|
|
planned_end_date = fields.Datetime(
|
|
planned_end_date = fields.Datetime(
|
|
string='Planned end date'
|
|
string='Planned end date'
|
|
)
|
|
)
|
|
|
|
+ date_service = fields.Datetime(
|
|
|
|
+ string='Mantenimiento próximo'
|
|
|
|
+ )
|
|
name_obra = fields.Char(
|
|
name_obra = fields.Char(
|
|
string='Obra'
|
|
string='Obra'
|
|
)
|
|
)
|
|
@@ -74,25 +73,35 @@ class WorkOrder(models.Model):
|
|
emergente = fields.Text(
|
|
emergente = fields.Text(
|
|
string='Pedidos adicionales y emergentes'
|
|
string='Pedidos adicionales y emergentes'
|
|
)
|
|
)
|
|
|
|
+ problemasline_ids = fields.One2many(
|
|
|
|
+ comodel_name='repair.problemasorderimproved.line',
|
|
|
|
+ inverse_name='workorder_id',
|
|
|
|
+ string='Problemas o sintomas encontrados'
|
|
|
|
+ )
|
|
pedidoline_ids = fields.One2many(
|
|
pedidoline_ids = fields.One2many(
|
|
comodel_name='repair.pedidosorderimproved.line',
|
|
comodel_name='repair.pedidosorderimproved.line',
|
|
inverse_name='workorder_id',
|
|
inverse_name='workorder_id',
|
|
- string='Pedidos adicionales y emergentes'
|
|
|
|
|
|
+ string='Pedido adicional para servicio extra'
|
|
)
|
|
)
|
|
- resumenline_ids = fields.One2many(
|
|
|
|
- comodel_name='repair.resumenorderimproved.line',
|
|
|
|
|
|
+ consumed_ids = fields.One2many(
|
|
|
|
+ comodel_name='repair.workorderimproved.consumed',
|
|
inverse_name='workorder_id',
|
|
inverse_name='workorder_id',
|
|
- string='Estado y resumen de trabajos'
|
|
|
|
|
|
+ string='Lista de Materiales proveídos por Biolectric'
|
|
)
|
|
)
|
|
calidadline_ids = fields.One2many(
|
|
calidadline_ids = fields.One2many(
|
|
comodel_name='repair.calidadorderimproved.line',
|
|
comodel_name='repair.calidadorderimproved.line',
|
|
inverse_name='workorder_id',
|
|
inverse_name='workorder_id',
|
|
- string='Control de calidad, fichas y lacres'
|
|
|
|
|
|
+ string='Ensayos de control de calidad realizados a los trabajos o equipos entregados al cliente'
|
|
|
|
+ )
|
|
|
|
+ resumenline_ids = fields.One2many(
|
|
|
|
+ comodel_name='repair.resumenorderimproved.line',
|
|
|
|
+ inverse_name='workorder_id',
|
|
|
|
+ string='Estado final de equipos y sistemas entregados al cliente luego de terminar los trabajos'
|
|
)
|
|
)
|
|
sugerencialine_ids = fields.One2many(
|
|
sugerencialine_ids = fields.One2many(
|
|
comodel_name='repair.sugerenciaorderimproved.line',
|
|
comodel_name='repair.sugerenciaorderimproved.line',
|
|
inverse_name='workorder_id',
|
|
inverse_name='workorder_id',
|
|
- string='Sugerencias y pendientes'
|
|
|
|
|
|
+ string='Sugerencias y agendamientos'
|
|
)
|
|
)
|
|
diagnostic = fields.Text(
|
|
diagnostic = fields.Text(
|
|
string='Diagnostic'
|
|
string='Diagnostic'
|
|
@@ -236,33 +245,33 @@ class WorkOrder(models.Model):
|
|
|
|
|
|
class WorkOrderLine(models.Model):
|
|
class WorkOrderLine(models.Model):
|
|
_name = 'repair.workorderimproved.line'
|
|
_name = 'repair.workorderimproved.line'
|
|
- _description = 'Product to repair'
|
|
|
|
|
|
+ _description = 'Pedidos inicial del cliente'
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
|
|
|
|
workorder_id = fields.Many2one(
|
|
workorder_id = fields.Many2one(
|
|
comodel_name='repair.workorderimproved',
|
|
comodel_name='repair.workorderimproved',
|
|
string='Work order improved')
|
|
string='Work order improved')
|
|
description = fields.Char(string='Description')
|
|
description = fields.Char(string='Description')
|
|
- quantity = fields.Float(string='Quantity', default=1.0)
|
|
|
|
|
|
+ quantity = fields.Float(string='Quantity')
|
|
brand = fields.Char(string='Marca')
|
|
brand = fields.Char(string='Marca')
|
|
number = fields.Char(string="Numero de serie")
|
|
number = fields.Char(string="Numero de serie")
|
|
|
|
|
|
class PedidosOrderLine(models.Model):
|
|
class PedidosOrderLine(models.Model):
|
|
_name = 'repair.pedidosorderimproved.line'
|
|
_name = 'repair.pedidosorderimproved.line'
|
|
- _description = 'Pedidos adicionales y emergentes'
|
|
|
|
|
|
+ _description = 'Pedido adicional para servicio extra'
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
|
|
|
|
workorder_id = fields.Many2one(
|
|
workorder_id = fields.Many2one(
|
|
comodel_name='repair.workorderimproved',
|
|
comodel_name='repair.workorderimproved',
|
|
string='Work order improved')
|
|
string='Work order improved')
|
|
description = fields.Char(string='Description')
|
|
description = fields.Char(string='Description')
|
|
- quantity = fields.Float(string='Quantity', default=1.0)
|
|
|
|
|
|
+ quantity = fields.Float(string='Quantity')
|
|
brand = fields.Char(string='Marca')
|
|
brand = fields.Char(string='Marca')
|
|
number = fields.Char(string="Numero de serie")
|
|
number = fields.Char(string="Numero de serie")
|
|
|
|
|
|
class ResumenOrderLine(models.Model):
|
|
class ResumenOrderLine(models.Model):
|
|
_name = 'repair.resumenorderimproved.line'
|
|
_name = 'repair.resumenorderimproved.line'
|
|
- _description = 'Estado y resumen de trabajos'
|
|
|
|
|
|
+ _description = 'Estado final de equipos y sistemas entregados al cliente luego de terminar los trabajos'
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
|
|
|
|
workorder_id = fields.Many2one(
|
|
workorder_id = fields.Many2one(
|
|
@@ -272,7 +281,7 @@ class ResumenOrderLine(models.Model):
|
|
|
|
|
|
class CalidadOrderLine(models.Model):
|
|
class CalidadOrderLine(models.Model):
|
|
_name = 'repair.calidadorderimproved.line'
|
|
_name = 'repair.calidadorderimproved.line'
|
|
- _description = 'Control de calidad, fichas y lacres'
|
|
|
|
|
|
+ _description = 'Ensayos de control de calidad realizados a los trabajos o equipos entregados al cliente'
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
|
|
|
|
workorder_id = fields.Many2one(
|
|
workorder_id = fields.Many2one(
|
|
@@ -284,7 +293,7 @@ class CalidadOrderLine(models.Model):
|
|
|
|
|
|
class SugerenciasOrderLine(models.Model):
|
|
class SugerenciasOrderLine(models.Model):
|
|
_name = 'repair.sugerenciaorderimproved.line'
|
|
_name = 'repair.sugerenciaorderimproved.line'
|
|
- _description = 'Sugerencias y pendientes'
|
|
|
|
|
|
+ _description = 'Sugerencias y agendamientos'
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
|
|
|
|
workorder_id = fields.Many2one(
|
|
workorder_id = fields.Many2one(
|
|
@@ -293,9 +302,20 @@ class SugerenciasOrderLine(models.Model):
|
|
description = fields.Char(string='Description')
|
|
description = fields.Char(string='Description')
|
|
number = fields.Char(string="Numero de serie")
|
|
number = fields.Char(string="Numero de serie")
|
|
|
|
|
|
|
|
+class ProblemasOrderLine(models.Model):
|
|
|
|
+ _name = 'repair.problemasorderimproved.line'
|
|
|
|
+ _description = 'Problemas o síntomas encontrados'
|
|
|
|
+ _inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
|
|
+
|
|
|
|
+ workorder_id = fields.Many2one(
|
|
|
|
+ comodel_name='repair.workorderimproved',
|
|
|
|
+ string='Work order improved')
|
|
|
|
+
|
|
|
|
+ description = fields.Char(string='Description')
|
|
|
|
+
|
|
class WorkOrderConsumed(models.Model):
|
|
class WorkOrderConsumed(models.Model):
|
|
_name = 'repair.workorderimproved.consumed'
|
|
_name = 'repair.workorderimproved.consumed'
|
|
- _description = 'Services for repair'
|
|
|
|
|
|
+ _description = 'Lista de Materiales proveídos por Biolectric'
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
|
|
|
|
|
workorder_id = fields.Many2one(
|
|
workorder_id = fields.Many2one(
|