|
@@ -199,8 +199,8 @@ class SaleOrderPricelist(models.Model):
|
|
for xsale in self.order_line:
|
|
for xsale in self.order_line:
|
|
listPercent = self.env['product.pricelist.porcent'].search([('product_id', '=', xsale.product_id.id), ('pricelist_id', '=', self.pricelist_id.id)])
|
|
listPercent = self.env['product.pricelist.porcent'].search([('product_id', '=', xsale.product_id.id), ('pricelist_id', '=', self.pricelist_id.id)])
|
|
if (listPercent):
|
|
if (listPercent):
|
|
- if (xsale.price_unit < listPercent.price_minimum):
|
|
|
|
- message1 += "\n Producto (%s) Precio de Venta (%s) Precio de Minimo (%s)" %(xsale.name.encode("utf-8") ,xsale.price_unit, listPercent.price_minimum)
|
|
|
|
|
|
+ # if (xsale.price_unit < listPercent.price_minimum):
|
|
|
|
+ # message1 += "\n Producto (%s) Precio de Venta (%s) Precio de Minimo (%s)" %(xsale.name.encode("utf-8") ,xsale.price_unit, listPercent.price_minimum)
|
|
|
|
|
|
message = "¡Precio de venta no permitido!\n¡El monto ingresado es menor al precio mínimo permitido!\n"
|
|
message = "¡Precio de venta no permitido!\n¡El monto ingresado es menor al precio mínimo permitido!\n"
|
|
message += message1
|
|
message += message1
|
|
@@ -225,8 +225,8 @@ class SaleOrderLinePricelist(models.Model):
|
|
if (not listPercent):
|
|
if (not listPercent):
|
|
return
|
|
return
|
|
|
|
|
|
- if (self.price_unit < listPercent.price_minimum):
|
|
|
|
- price = self.price_unit
|
|
|
|
- msg = 'El valor ingresado es menor al precio mínimo permito.\
|
|
|
|
- Valor Ingresado %s precio mínimo %s"' %(price,listPercent.price_minimum)
|
|
|
|
- raise Warning(_(msg))
|
|
|
|
|
|
+ # if (self.price_unit < listPercent.price_minimum):
|
|
|
|
+ # price = self.price_unit
|
|
|
|
+ # msg = 'El valor ingresado es menor al precio mínimo permitido.\
|
|
|
|
+ # Valor Ingresado %s precio mínimo %s"' %(price,listPercent.price_minimum)
|
|
|
|
+ # raise Warning(_(msg))
|