Bladeren bron

Módulo para la carga de orden de servicio, tipo obra.

SEBAS 1 jaar geleden
bovenliggende
commit
67f1adf7bf
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 4 4
      models/orden_servicio.py

+ 4 - 4
models/orden_servicio.py

@@ -297,7 +297,7 @@ class ServicioInsumo(models.Model):
     @api.onchange('product_id')
     def onchange_product_id(self):
         if self.product_id:
-            self.description = self.product_id.name
+            self.descripcion = self.product_id.name
             self.price_unit = self.product_id.standard_price
 
 class ServicioLogistica(models.Model):
@@ -339,7 +339,7 @@ class ServicioLogistica(models.Model):
     @api.onchange('product_id')
     def onchange_product_id(self):
         if self.product_id:
-            self.description = self.product_id.name
+            self.descripcion = self.product_id.name
             self.price_unit = self.product_id.standard_price
 
 
@@ -380,7 +380,7 @@ class DevolucionInsumo(models.Model):
     @api.onchange('product_id')
     def onchange_product_id(self):
         if self.product_id:
-            self.description = self.product_id.name
+            self.descripcion = self.product_id.name
             self.price_unit = self.product_id.standard_price
 
 
@@ -430,7 +430,7 @@ class RecepcionFabrica(models.Model):
     @api.onchange('product_id')
     def onchange_product_id(self):
         if self.product_id:
-            self.description = self.product_id.name
+            self.descripcion = self.product_id.name
             self.price_unit = self.product_id.standard_price
 
 class AccountInvoice(models.Model):