def METHOD_NAME(self):
    self.assertFalse(self.inbound_payment_method_01.payment_order_only)
    self.assertFalse(self.inbound_payment_method_02.payment_order_only)
    self.assertFalse(self.bank_journal.inbound_payment_order_only)
    new_account_payment = self.account_payment_model.with_context(
        default_company_id=self.company.id
    ).new(
        {
            "journal_id": self.bank_journal.id,
            "payment_type": "inbound",
            "amount": 1,
            "company_id": self.company.id,
        }
    )
    # check journals
    journals = new_account_payment._get_default_journal()
    self.assertIn(self.bank_journal, journals)
    # check payment methods
    payment_methods = new_account_payment.available_payment_method_ids.ids
    self.assertIn(self.inbound_payment_method_01.id, payment_methods)
    self.assertIn(self.inbound_payment_method_02.id, payment_methods)
    # Set one payment method of the bank journal 'payment order only'
    self.inbound_payment_method_01.payment_order_only = True
    # check journals
    journals = new_account_payment._get_default_journal()
    self.assertIn(self.bank_journal, journals)
    # check payment methods
    new_account_payment._compute_payment_method_fields()
    payment_methods = new_account_payment.available_payment_method_ids.ids
    self.assertNotIn(self.inbound_payment_method_01.id, payment_methods)
    self.assertIn(self.inbound_payment_method_02.id, payment_methods)
    # Set all payment methods of the bank journal 'payment order only'
    self.inbound_payment_method_02.payment_order_only = True
    self.assertTrue(self.inbound_payment_method_01.payment_order_only)
    self.assertTrue(self.inbound_payment_method_02.payment_order_only)
    self.assertTrue(self.bank_journal.inbound_payment_order_only)
    # check journals
    journals = new_account_payment._get_default_journal()
    self.assertNotIn(self.bank_journal, journals)
    # check payment methods
    new_account_payment._compute_payment_method_fields()
    payment_methods = new_account_payment.available_payment_method_ids.ids
    self.assertNotIn(self.inbound_payment_method_01.id, payment_methods)
    self.assertNotIn(self.inbound_payment_method_02.id, payment_methods)