From 68273e2181cc2bce65a1c6e7d22ea714f36283af Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 15 Jul 2019 12:57:08 +0000 Subject: [PATCH] [FIX] point_of_sale: Product description missing on invoice via POS Steps to reproduce the bug: - Create a product and fill in a description for that product (in Sales app, on Sales tab --> description for the client) - Sell the product via POS - Create an invoice via POS Bug: The customer description didn't appear in the invoice line. opw:1771302 closes odoo/odoo#34869 Signed-off-by: Simon Goffin (sig) --- addons/point_of_sale/models/pos_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/models/pos_order.py b/addons/point_of_sale/models/pos_order.py index ce87fa885a0..29f4de05dd4 100644 --- a/addons/point_of_sale/models/pos_order.py +++ b/addons/point_of_sale/models/pos_order.py @@ -236,7 +236,7 @@ class PosOrder(models.Model): # We convert a new id object back to a dictionary to write to # bridge between old and new api inv_line = invoice_line._convert_to_write({name: invoice_line[name] for name in invoice_line._cache}) - inv_line.update(price_unit=line.price_unit, discount=line.discount, name=inv_name) + inv_line.update(price_unit=line.price_unit, discount=line.discount) return InvoiceLine.sudo().create(inv_line) def _create_account_move_line(self, session=None, move=None):