parameters: (self)
return_statement: return action
docstring: Redirect the user to the invoice(s) paid by this payment.
          :return:    An action on account.move.
docstring_summary: Redirect the user to the invoice(s) paid by this payment.
          :return:    An action on account.move.
docstring_tokens: Redirect the user to the invoice ( s ) paid by this payment . : return : An action on account . move .
function: def button_open_invoices(self):
          ''' Redirect the user to the invoice(s) paid by this payment.
          :return:    An action on account.move.
          '''
          self.ensure_one()
  
          action = {
              'name': _("Paid Invoices"),
              'type': 'ir.actions.act_window',
              'res_model': 'account.move',
              'context': {'create': False},
          }
          if len(self.reconciled_invoice_ids) == 1:
              action.update({
                  'view_mode': 'form',
                  'res_id': self.reconciled_invoice_ids.id,
              })
          else:
              action.update({
                  'view_mode': 'list,form',
                  'domain': [('id', 'in', self.reconciled_invoice_ids.ids)],
              })
          return action
function_tokens: def button_open_invoices ( self ) : self . ensure_one ( ) action = { 'name' : _ ( "Paid Invoices" ) , 'type' : 'ir.actions.act_window' , 'res_model' : 'account.move' , 'context' : { 'create' : False } , } if len ( self . reconciled_invoice_ids ) == 1 : action . update ( { 'view_mode' : 'form' , 'res_id' : self . reconciled_invoice_ids . id , } ) else : action . update ( { 'view_mode' : 'list,form' , 'domain' : [ ( 'id' , 'in' , self . reconciled_invoice_ids . ids ) ] , } ) return action