[FIX] point_of_sale: do not strip name on backend report

The max size of 20 is for the pos ticket which has a limited size.
Strip on client side to keep the full name for the pdf report.
opw-691483
This commit is contained in:
Martin Trigaux
2016-10-25 13:26:28 +02:00
parent eb7226d8d0
commit d183de7aae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -819,7 +819,7 @@ class ReportSaleDetails(models.AbstractModel):
'taxes': taxes.values(),
'products': sorted([{
'product_id': product.id,
'product_name': product.name[:20],
'product_name': product.name,
'code': product.default_code,
'quantity': qty,
'price_unit': price_unit,
+1 -1
View File
@@ -864,7 +864,7 @@
<div class='orderlines' line-ratio='0.6'>
<t t-foreach='products' t-as='line'>
<line>
<left><t t-esc='line.product_name' /></left>
<left><t t-esc='line.product_name.substr(0,20)' /></left>
<right>
<value value-decimals='2' value-autoint='on'>
<t t-esc='line.quantity' />