[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:
@@ -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,
|
||||
|
||||
@@ -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' />
|
||||
|
||||
Reference in New Issue
Block a user