parameters: (self, partial, amount, counterpart_line)
return_statement: return result
docstring: Add pos_payment_name field in the reconciled vals to be able to show the payment method in the invoice.
docstring_summary: Add pos_payment_name field in the reconciled vals to be able to show the payment method in the invoice.
docstring_tokens: Add pos_payment_name field in the reconciled vals to be able to show the payment method in the invoice .
function: def _get_reconciled_vals(self, partial, amount, counterpart_line):
          """Add pos_payment_name field in the reconciled vals to be able to show the payment method in the invoice."""
          result = super()._get_reconciled_vals(partial, amount, counterpart_line)
          if counterpart_line.move_id.sudo().pos_payment_ids:
              pos_payment = counterpart_line.move_id.sudo().pos_payment_ids
              result['pos_payment_name'] = pos_payment.payment_method_id.name
          return result
function_tokens: def _get_reconciled_vals ( self , partial , amount , counterpart_line ) : result = super ( ) . _get_reconciled_vals ( partial , amount , counterpart_line ) if counterpart_line . move_id . sudo ( ) . pos_payment_ids : pos_payment = counterpart_line . move_id . sudo ( ) . pos_payment_ids result [ 'pos_payment_name' ] = pos_payment . payment_method_id . name return result