|
@@ -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.40)))) and not self.env['res.users'].browse(self.env.uid).has_group('sale_restrict_price_c.groups_restrict_price_c'):
|
|
|
+ if (xorden.price_unit) < (((xorden.product_id.product_tmpl_id.standard_price*(1+0.42)))) and not self.env['res.users'].browse(self.env.uid).has_group('sale_restrict_price_c.groups_restrict_price_c'):
|
|
|
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.40)))+")"
|
|
|
+ message1 += "\t Precio mínimo ("+str((xorden.product_id.product_tmpl_id.standard_price*(1+0.42)))+")"
|
|
|
|
|
|
message = "¡Precio de venta no permitido!\n¡El monto ingresado es menor al precio C establecido!"
|
|
|
message += message1
|