Jelajahi Sumber

Cambiar limite minimo lista B

sebas 4 tahun lalu
induk
melakukan
1f6cfd343f
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      models/sale_order.py

+ 2 - 2
models/sale_order.py

@@ -12,10 +12,10 @@ class sale_order(models.Model):
         # xrate = moneda[len(moneda) - 1]
         # xcambio = xrate.rate
         for xorden in self.order_line:
-            if (xorden.price_unit) < (((xorden.product_id.product_tmpl_id.standard_price*(1+0.60)))) and not self.env['res.users'].browse(self.env.uid).has_group('sale_restrict_price_b.groups_restrict_price_b'):
+            if (xorden.price_unit) < (((xorden.product_id.product_tmpl_id.standard_price*(1+0.62)))) and not self.env['res.users'].browse(self.env.uid).has_group('sale_restrict_price_b.groups_restrict_price_b'):
                 message1 += "\n Producto "+str(xorden.name)
                 message1 += "\t Precio de Venta ("+str(xorden.price_unit)+")"
-                message1 += "\t Precio mínimo ("+str((xorden.product_id.product_tmpl_id.standard_price*(1+0.60)))+")"
+                message1 += "\t Precio mínimo ("+str((xorden.product_id.product_tmpl_id.standard_price*(1+0.62)))+")"
 
         message = "¡Precio de venta no permitido!\n¡El monto ingresado es menor al precio B establecido!"
         message += message1