def METHOD_NAME(self):
    pix_vals = {
        "partner_id": self.partner_id.id,
        "key_type": "phone",
        "key": "+50372424737",
    }
    self.res_partner_pix_model.with_context(tracking_disable=True).create(pix_vals)
    with mute_logger("odoo.sql_db"):
        with self.assertRaisesRegex(IntegrityError, "partner_pix_key_unique"):
            self.res_partner_pix_model.with_context(tracking_disable=True).create(
                pix_vals
            )