|
@@ -12,12 +12,12 @@ class sale_order(models.Model):
|
|
# xrate = moneda[len(moneda) - 1]
|
|
# xrate = moneda[len(moneda) - 1]
|
|
# xcambio = xrate.rate
|
|
# xcambio = xrate.rate
|
|
for xorden in self.order_line:
|
|
for xorden in self.order_line:
|
|
- 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'):
|
|
|
|
|
|
+ if (xorden.price_unit) < (((xorden.product_id.product_tmpl_id.standard_price*(1+0.43)))) 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 += "\n Producto "+str(xorden.name)
|
|
message1 += "\t Precio de Venta ("+str(xorden.price_unit)+")"
|
|
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.42)))+")"
|
|
|
|
|
|
+ message1 += "\t Precio mínimo ("+str((xorden.product_id.product_tmpl_id.standard_price*(1+0.43)))+")"
|
|
|
|
|
|
- message = "¡Precio de venta no permitido!\n¡El monto ingresado es menor al precio C establecido!"
|
|
|
|
|
|
+ message = "¡Precio de venta no permitido!\n ¡El monto ingresado es menor al precio C establecido!"
|
|
message += message1
|
|
message += message1
|
|
if message1:
|
|
if message1:
|
|
raise Warning(_(message.rstrip()))
|
|
raise Warning(_(message.rstrip()))
|