Prechádzať zdrojové kódy

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

SEBAS 1 rok pred
rodič
commit
bd683e8439
2 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      models/orden_servicio.py
  2. BIN
      models/orden_servicio.pyc

+ 3 - 2
models/orden_servicio.py

@@ -239,7 +239,7 @@ class ProductoServicio(models.Model):
         digits=(5, 3)
     )
     price_unit = fields.Float('Precio de costo')
-    subtotal = fields.Float('Subtotal', compute='compute_subtotal', store=True)
+    subtotal = fields.Float('Subtotal', compute='compute_subtotal', store=True, digits=(10, 0))
 
     @api.one
     @api.depends('quantity', 'price_unit')
@@ -327,7 +327,8 @@ class ServicioLogistica(models.Model):
     )
     subtotal = fields.Float(
         string='Subtotal',
-        compute='compute_subtotal'
+        compute='compute_subtotal',
+        digits=(10, 0)
     )
 
 

BIN
models/orden_servicio.pyc