Thursday, August 8, 2024
1 change · saas-17.1
Resolved issues and error corrections
Downpayment receipts in Point of Sale now show the names of the products linked to the sales order. This prevents confusing blank receipt lines and makes receipts clearer for customers and staff.
Original PR description
Currently, when making downpayment the name on the product concerned by the downpayment are not reflected on the receipt. Steps to reproduce: ------------------- * Go to the **Sale** App * Make a…
Currently, when making downpayment the name on the product concerned by the downpayment are not reflected on the receipt. Steps to reproduce: ------------------- * Go to the **Sale** App * Make a quotation with multiple products -> Save * Go to the **Point of Sale** App * Make a downpayment for the quotation just created * Pay and validate > Observation: We see multiple '1x ' lines on the receipt, under the downpayment line but the product names are not shown Why the fix: ------------ https://github.com/odoo/odoo/blob/9e934b83ed200317947ee7575deb443e721290e8/addons/pos_sale/static/src/app/order_management_screen/sale_order_management_screen/sale_order_management_screen.js#L384 `line.product_id` is now only a number thus `line.product_id[1]` is undefined. We could use `line.display_name` as it is already currently loaded but there is too much information on the display name. It has the following format: `Sale Order nbr - Name of the product - Customer of the SO` opw-4043149