[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) <sig@openerp.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user