瀏覽代碼

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

SEBAS 1 年之前
父節點
當前提交
67f1adf7bf
共有 1 個文件被更改,包括 4 次插入4 次删除
  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):