Skip to content

Commit

Permalink
[FIX] point_of_sale: Variant description doesn't show on POS invoice
Browse files Browse the repository at this point in the history
The display_name of the product  must be shown as the name of the invoice line
to have the same behavior as in Sale app.

opw:771302
  • Loading branch information
simongoffin committed Oct 16, 2017
1 parent cd21942 commit c9e36d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/point_of_sale/models/pos_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _action_create_invoice_line(self, line=False, invoice_id=False):
# 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)
inv_line.update(price_unit=line.price_unit, discount=line.discount, name=inv_name)
return InvoiceLine.sudo().create(inv_line)

def _create_account_move_line(self, session=None, move=None):
Expand Down

0 comments on commit c9e36d3

Please sign in to comment.